From cfad8d361454244f2f153760e25fd49b59555483 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Fri, 11 Feb 2022 08:42:49 -0500 Subject: [PATCH] Enable key backup after we reset it (#2170) 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. --- src/crypto/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crypto/index.ts b/src/crypto/index.ts index 03650d069ad..f9b77e3b402 100644 --- a/src/crypto/index.ts +++ b/src/crypto/index.ts @@ -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); }