🐛 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> <string>zh</string>
</array> </array>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>solian</string> <string>Solian</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>

View File

@ -79,7 +79,7 @@ class ChatMessageAction extends StatelessWidget {
return ListView( return ListView(
children: [ children: [
...(snapshot.data['id'] == item.sender.accountId ? authorizedItems : List.empty()), ...(snapshot.data['id'] == item.sender.account.externalId ? authorizedItems : List.empty()),
ListTile( ListTile(
leading: const Icon(Icons.reply), leading: const Icon(Icons.reply),
title: Text(AppLocalizations.of(context)!.reply), title: Text(AppLocalizations.of(context)!.reply),

View File

@ -91,7 +91,7 @@ class PostItemAction extends StatelessWidget {
return ListView( return ListView(
children: [ children: [
...(snapshot.data['id'] == item.authorId ...(snapshot.data['id'] == item.author.externalId
? authorizedItems ? authorizedItems
: List.empty()), : List.empty()),
ListTile( ListTile(