mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: Unban
This commit is contained in:
parent
b4fb28380f
commit
f056e65d50
@ -177,13 +177,13 @@ class UserBottomSheet extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
value: 'ban'),
|
value: 'ban'),
|
||||||
);
|
);
|
||||||
} else if (user.room.canBan &&
|
} else if (user.canBan && user.membership == Membership.ban) {
|
||||||
user.powerLevel < user.room.ownPowerLevel &&
|
|
||||||
user.membership == Membership.ban) {
|
|
||||||
items.add(
|
items.add(
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
child: _TextWithIcon(
|
child: _TextWithIcon(
|
||||||
L10n.of(context).removeExile, Icons.warning_outlined),
|
L10n.of(context).removeExile,
|
||||||
|
Icons.warning_outlined,
|
||||||
|
),
|
||||||
value: 'unban'),
|
value: 'unban'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -208,8 +208,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "0697d47cc2791419ecf5dbc8840ac95bb6689e68"
|
ref: ab8eb71fee228be8a6ead96d03daf46c3d0c053c
|
||||||
resolved-ref: "0697d47cc2791419ecf5dbc8840ac95bb6689e68"
|
resolved-ref: ab8eb71fee228be8a6ead96d03daf46c3d0c053c
|
||||||
url: "https://gitlab.com/famedly/famedlysdk.git"
|
url: "https://gitlab.com/famedly/famedlysdk.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
@ -13,7 +13,7 @@ dependencies:
|
|||||||
famedlysdk:
|
famedlysdk:
|
||||||
git:
|
git:
|
||||||
url: https://gitlab.com/famedly/famedlysdk.git
|
url: https://gitlab.com/famedly/famedlysdk.git
|
||||||
ref: 0697d47cc2791419ecf5dbc8840ac95bb6689e68
|
ref: ab8eb71fee228be8a6ead96d03daf46c3d0c053c
|
||||||
|
|
||||||
localstorage: ^3.0.3+6
|
localstorage: ^3.0.3+6
|
||||||
file_picker_cross: 4.2.2
|
file_picker_cross: 4.2.2
|
||||||
|
Loading…
Reference in New Issue
Block a user