From f056e65d50faf6649663ccf8dbbc10669cc79de5 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 22 Nov 2020 21:12:46 +0100 Subject: [PATCH] fix: Unban --- lib/components/user_bottom_sheet.dart | 8 ++++---- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/components/user_bottom_sheet.dart b/lib/components/user_bottom_sheet.dart index 7a9b8c69..c4bc2e49 100644 --- a/lib/components/user_bottom_sheet.dart +++ b/lib/components/user_bottom_sheet.dart @@ -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'), ); } diff --git a/pubspec.lock b/pubspec.lock index d5f95221..56659770 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -208,8 +208,8 @@ packages: dependency: "direct main" description: path: "." - ref: "0697d47cc2791419ecf5dbc8840ac95bb6689e68" - resolved-ref: "0697d47cc2791419ecf5dbc8840ac95bb6689e68" + ref: ab8eb71fee228be8a6ead96d03daf46c3d0c053c + resolved-ref: ab8eb71fee228be8a6ead96d03daf46c3d0c053c url: "https://gitlab.com/famedly/famedlysdk.git" source: git version: "0.0.1" diff --git a/pubspec.yaml b/pubspec.yaml index 7292f15e..5c3e1934 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: famedlysdk: git: url: https://gitlab.com/famedly/famedlysdk.git - ref: 0697d47cc2791419ecf5dbc8840ac95bb6689e68 + ref: ab8eb71fee228be8a6ead96d03daf46c3d0c053c localstorage: ^3.0.3+6 file_picker_cross: 4.2.2