🐛 Fix some permission check issue

This commit is contained in:
LittleSheep 2024-04-20 12:06:16 +08:00
parent 846febb82a
commit eb9a24582b
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
<string>zh</string>
</array>
<key>CFBundleName</key>
<string>solian</string>
<string>Solian</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>

View File

@ -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),

View File

@ -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(