Merge pull request #4354 from matrix-org/dbkr/dont_block_dialogs_with_spinner

Don't show spinner over encryption setup dialogs
This commit is contained in:
David Baker 2020-04-07 17:08:38 +01:00 committed by GitHub
commit 112e198a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,9 @@ export default class SetupEncryptionToast extends React.PureComponent {
{}, null, /* priority = */ false, /* static = */ true); {}, null, /* priority = */ false, /* static = */ true);
} else { } else {
const Spinner = sdk.getComponent("elements.Spinner"); const Spinner = sdk.getComponent("elements.Spinner");
const modal = Modal.createDialog(Spinner, null, 'mx_Dialog_spinner'); const modal = Modal.createDialog(
Spinner, null, 'mx_Dialog_spinner', /* priority */ false, /* static */ true,
);
try { try {
await accessSecretStorage(); await accessSecretStorage();
await this._waitForCompletion(); await this._waitForCompletion();