🐛 Fix some permission check issue
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user