From 30525cf391fa15ae21010daa430e401c3ceffab3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 8 Mar 2021 16:19:28 +0100 Subject: [PATCH] oops, missing await to store new olm sessions! --- src/matrix/e2ee/olm/Encryption.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/e2ee/olm/Encryption.js b/src/matrix/e2ee/olm/Encryption.js index 7fe4c318..3bc66ec3 100644 --- a/src/matrix/e2ee/olm/Encryption.js +++ b/src/matrix/e2ee/olm/Encryption.js @@ -157,7 +157,7 @@ export class Encryption { const {device, oneTimeKey} = target; target.session = await this._account.createOutboundOlmSession(device.curve25519Key, oneTimeKey); } - this._storeSessions(newEncryptionTargets, timestamp); + await this._storeSessions(newEncryptionTargets, timestamp); } catch (err) { for (const target of newEncryptionTargets) { target.dispose();