From 3219aefc9254b162a5a56a6cab0494e29e2e6cc1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 17 Dec 2024 09:22:31 +0000 Subject: [PATCH] Avoid key prompts when resetting crypto (#4586) * Avoid key prompts when resetting crypto Attempting to get the backup key out of secret storage can cause the user to be prompted for their key, which is not helpful if this is being done as part of a reset. This check was redundant anyway and we can just overwrite the key with the same value. Also fix docs and remove check for active backup. * Fix doc --- src/rust-crypto/rust-crypto.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/rust-crypto/rust-crypto.ts b/src/rust-crypto/rust-crypto.ts index ad9e30b292..e586510440 100644 --- a/src/rust-crypto/rust-crypto.ts +++ b/src/rust-crypto/rust-crypto.ts @@ -854,7 +854,7 @@ export class RustCrypto extends TypedEventEmitter { const keyBackupInfo = await this.backupManager.getServerBackupInfo(); @@ -863,12 +863,6 @@ export class RustCrypto extends TypedEventEmitter