Don't show the key storage out of sync toast when backup disabled (#31506)

This commit is contained in:
Hubert Chathi
2025-12-10 16:03:47 +00:00
committed by GitHub
parent cff9119324
commit 4bd8eeb17a
2 changed files with 29 additions and 2 deletions
+4 -1
View File
@@ -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;