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