fix: Unban
This commit is contained in:
parent
69847bff17
commit
df23180fa5
3 changed files with 7 additions and 7 deletions
|
|
@ -177,13 +177,13 @@ class UserBottomSheet extends StatelessWidget {
|
|||
),
|
||||
value: 'ban'),
|
||||
);
|
||||
} else if (user.room.canBan &&
|
||||
user.powerLevel < user.room.ownPowerLevel &&
|
||||
user.membership == Membership.ban) {
|
||||
} else if (user.canBan && user.membership == Membership.ban) {
|
||||
items.add(
|
||||
PopupMenuItem(
|
||||
child: _TextWithIcon(
|
||||
L10n.of(context).removeExile, Icons.warning_outlined),
|
||||
L10n.of(context).removeExile,
|
||||
Icons.warning_outlined,
|
||||
),
|
||||
value: 'unban'),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue