From eb9a24582b6bbedb2e3ca095ae2c078f14821533 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 20 Apr 2024 12:06:16 +0800 Subject: [PATCH] :bug: Fix some permission check issue --- ios/Runner/Info.plist | 2 +- lib/widgets/chat/message_action.dart | 2 +- lib/widgets/posts/item_action.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index bb54496..1565322 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -20,7 +20,7 @@ zh CFBundleName - solian + Solian CFBundlePackageType APPL CFBundleShortVersionString diff --git a/lib/widgets/chat/message_action.dart b/lib/widgets/chat/message_action.dart index f4bcb6d..4baa609 100644 --- a/lib/widgets/chat/message_action.dart +++ b/lib/widgets/chat/message_action.dart @@ -79,7 +79,7 @@ class ChatMessageAction extends StatelessWidget { return ListView( children: [ - ...(snapshot.data['id'] == item.sender.accountId ? authorizedItems : List.empty()), + ...(snapshot.data['id'] == item.sender.account.externalId ? authorizedItems : List.empty()), ListTile( leading: const Icon(Icons.reply), title: Text(AppLocalizations.of(context)!.reply), diff --git a/lib/widgets/posts/item_action.dart b/lib/widgets/posts/item_action.dart index 0c84c10..2bb58b7 100644 --- a/lib/widgets/posts/item_action.dart +++ b/lib/widgets/posts/item_action.dart @@ -91,7 +91,7 @@ class PostItemAction extends StatelessWidget { return ListView( children: [ - ...(snapshot.data['id'] == item.authorId + ...(snapshot.data['id'] == item.author.externalId ? authorizedItems : List.empty()), ListTile(