Use updated waitFor
API with well-known
This commit is contained in:
parent
e56a61ec68
commit
2e2f60c20b
2 changed files with 2 additions and 10 deletions
|
@ -31,7 +31,7 @@ import {
|
|||
} from "./toasts/UnverifiedSessionToast";
|
||||
import { privateShouldBeEncrypted } from "./createRoom";
|
||||
import { isSecretStorageBeingAccessed, accessSecretStorage } from "./CrossSigningManager";
|
||||
import { ensureClientWellKnown, isSecureBackupRequired } from './utils/WellKnownUtils';
|
||||
import { isSecureBackupRequired } from './utils/WellKnownUtils';
|
||||
import { isLoggedIn } from './components/structures/MatrixChat';
|
||||
|
||||
|
||||
|
@ -226,7 +226,7 @@ export default class DeviceListener {
|
|||
showSetupEncryptionToast(SetupKind.UPGRADE_ENCRYPTION);
|
||||
} else {
|
||||
// No cross-signing or key backup on account (set up encryption)
|
||||
await ensureClientWellKnown();
|
||||
await cli.waitForClientWellKnown();
|
||||
if (isSecureBackupRequired() && isLoggedIn()) {
|
||||
// If we're meant to set up, and Secure Backup is required,
|
||||
// trigger the flow directly without a toast once logged in.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue