fix: Dialogs
This commit is contained in:
parent
8dea412782
commit
e15a549375
11 changed files with 104 additions and 68 deletions
|
|
@ -20,9 +20,10 @@ class ChatPermissionsSettings extends StatelessWidget {
|
|||
return FlushbarHelper.createError(message: L10n.of(context).noPermission)
|
||||
.show(context);
|
||||
}
|
||||
final newLevel =
|
||||
await PermissionSliderDialog(initialPermission: currentLevel)
|
||||
.show(context);
|
||||
final newLevel = await PermissionSliderDialog(
|
||||
initialPermission: currentLevel,
|
||||
l10n: L10n.of(context),
|
||||
).show(context);
|
||||
if (newLevel == null) return;
|
||||
final content = Map<String, dynamic>.from(
|
||||
room.getState(EventTypes.RoomPowerLevels).content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue