🐛 Fix some permission check issue
This commit is contained in:
parent
846febb82a
commit
eb9a24582b
@ -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>
|
||||
|
@ -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),
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user