fix: Ban button displayed for already banned users
This commit is contained in:
parent
f82d26eed1
commit
29a2dc83c0
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ void showMemberActionsPopupMenu({
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (user.canBan)
|
if (user.canBan && user.membership != Membership.ban)
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: _MemberActions.ban,
|
value: _MemberActions.ban,
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue