Re-check key backup after bootstrapSecretStorage (#3692)

Fixes https://github.com/vector-im/element-web/issues/26115
This commit is contained in:
Richard van der Hoff
2023-09-05 10:10:58 +01:00
committed by GitHub
parent c65e329101
commit 0778c4e01e
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -312,6 +312,7 @@ describe("Secrets", function () {
this.emit(ClientEvent.AccountData, event);
return {};
};
bob.getKeyBackupVersion = jest.fn().mockResolvedValue(null);
await bob.bootstrapCrossSigning({
authUploadDeviceSigningKeys: async (func) => {
+2
View File
@@ -228,6 +228,8 @@ export class EncryptionSetupOperation {
prefix: ClientPrefix.V3,
});
}
// tell the backup manager to re-check the keys now that they have been (maybe) updated
await crypto.backupManager.checkKeyBackup();
}
}
}