Don't show the key storage out of sync toast when backup disabled (#31506)
This commit is contained in:
@@ -438,7 +438,10 @@ export default class DeviceListener {
|
||||
// said we are OK with that.
|
||||
const keyBackupIsOk = keyBackupUploadActive || backupDisabled;
|
||||
|
||||
const backupKeyCached = (await crypto.getSessionBackupPrivateKey()) !== null;
|
||||
// If key backup is active and not disabled: do we have the backup key
|
||||
// cached locally?
|
||||
const backupKeyCached =
|
||||
!keyBackupUploadActive || backupDisabled || (await crypto.getSessionBackupPrivateKey()) !== null;
|
||||
|
||||
const allSystemsReady =
|
||||
isCurrentDeviceTrusted && allCrossSigningSecretsCached && keyBackupIsOk && recoveryIsOk && backupKeyCached;
|
||||
|
||||
Reference in New Issue
Block a user