Skip to content

Commit

Permalink
Don't reset key backup when creating a recovery key
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Jan 13, 2025
1 parent f78c27a commit bef3165
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ test.describe("Recovery section in Encryption tab", () => {

await app.closeDialog();
// Check that the current device is connected to key backup and the backup version is the expected one
await checkDeviceIsConnectedKeyBackup(page, "2", true);
await checkDeviceIsConnectedKeyBackup(page, "1", true);
});

// Test what happens if the cross-signing secrets are in secret storage but are not cached in the local DB.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export function ChangeRecoveryKey({
// when we will try to access the secret storage during the bootstrap
await withSecretStorageKeyCache(() =>
crypto.bootstrapSecretStorage({
setupNewKeyBackup: !userHasRecoveryKey,
setupNewSecretStorage: true,
createSecretStorageKey: async () => recoveryKey,
}),
Expand Down

0 comments on commit bef3165

Please sign in to comment.