Skip to content

Commit

Permalink
Enable key backup after we reset it (#2170)
Browse files Browse the repository at this point in the history
This ensures that we remember it if bootstrapCrossSigning gets called, so that
the authData gets signed by the master key, if a new key is created.
  • Loading branch information
uhoreg authored Feb 11, 2022
1 parent d9c3b88 commit cfad8d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crypto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,8 @@ export class Crypto extends EventEmitter {
// sign with the device fingerprint
await this.signObject(data.auth_data);

await this.backupManager.enableKeyBackup(data);

builder.addSessionBackup(data);
}

Expand Down

0 comments on commit cfad8d3

Please sign in to comment.