oops, missing await to store new olm sessions!

This commit is contained in:
Bruno Windels 2021-03-08 16:19:28 +01:00
parent 3678045e8d
commit 30525cf391

View file

@ -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();