From a97d235cf56092f819e1a08b307dbac07f4d62b1 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 28 Jan 2022 16:36:42 +0100 Subject: [PATCH] flush after enabling key backup --- src/matrix/Session.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index ab815f29..3d1530c9 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -204,6 +204,7 @@ export class Session { ]); if (await this._createKeyBackup(key, readTxn, log)) { await this._writeSSSSKey(key); + this._keyBackup.get().flush(log); return key; } });