mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Use staic dialog
This commit is contained in:
parent
629d85c938
commit
b05e704524
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ export async function promptForBackupPassphrase() {
|
|||
const RestoreKeyBackupDialog = sdk.getComponent('dialogs.keybackup.RestoreKeyBackupDialog');
|
||||
const { finished } = Modal.createTrackedDialog('Restore Backup', '', RestoreKeyBackupDialog, {
|
||||
showSummary: false, keyCallback: k => key = k,
|
||||
}, null, /* priority = */ false, /* static = */ false);
|
||||
}, null, /* priority = */ false, /* static = */ true);
|
||||
|
||||
const success = await finished;
|
||||
if (!success) throw new Error("Key backup prompt cancelled");
|
||||
|
|
Loading…
Reference in a new issue