fix: Dialogs
This commit is contained in:
parent
8dea412782
commit
e15a549375
11 changed files with 104 additions and 68 deletions
|
|
@ -59,9 +59,10 @@ class UserBottomSheet extends StatelessWidget {
|
|||
}
|
||||
break;
|
||||
case 'permission':
|
||||
final newPermission =
|
||||
await PermissionSliderDialog(initialPermission: user.powerLevel)
|
||||
.show(context);
|
||||
final newPermission = await PermissionSliderDialog(
|
||||
initialPermission: user.powerLevel,
|
||||
l10n: L10n.of(context),
|
||||
).show(context);
|
||||
if (newPermission != null) {
|
||||
if (newPermission == 100 && await _askConfirmation() == false) break;
|
||||
await showFutureLoadingDialog(
|
||||
|
|
@ -82,7 +83,7 @@ class UserBottomSheet extends StatelessWidget {
|
|||
void _verifyAction(BuildContext context) async {
|
||||
final client = user.room.client;
|
||||
final req = await client.userDeviceKeys[user.id].startVerification();
|
||||
await KeyVerificationDialog(request: req).show(context);
|
||||
await KeyVerificationDialog(request: req,l10n: L10n.of(context),).show(context);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue