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