fix: do not show block action on group rooms
This commit is contained in:
parent
b7ddb530ef
commit
c7f53028c2
File diff suppressed because one or more lines are too long
|
|
@ -113,7 +113,6 @@ class ChatListController extends State<ChatList>
|
||||||
|
|
||||||
void onChatTap(Room room) async {
|
void onChatTap(Room room) async {
|
||||||
if (room.membership == Membership.invite) {
|
if (room.membership == Membership.invite) {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -590,23 +589,24 @@ class ChatListController extends State<ChatList>
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
if (room.isDirectChat)
|
||||||
value: ChatContextAction.block,
|
PopupMenuItem(
|
||||||
child: Row(
|
value: ChatContextAction.block,
|
||||||
mainAxisSize: MainAxisSize.min,
|
child: Row(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
Icon(
|
children: [
|
||||||
Icons.block_outlined,
|
Icon(
|
||||||
color: Theme.of(context).colorScheme.error,
|
Icons.block_outlined,
|
||||||
),
|
color: Theme.of(context).colorScheme.error,
|
||||||
const SizedBox(width: 12),
|
),
|
||||||
Text(
|
const SizedBox(width: 12),
|
||||||
L10n.of(context).block,
|
Text(
|
||||||
style: TextStyle(color: Theme.of(context).colorScheme.error),
|
L10n.of(context).block,
|
||||||
),
|
style: TextStyle(color: Theme.of(context).colorScheme.error),
|
||||||
],
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: ChatContextAction.leave,
|
value: ChatContextAction.leave,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue