oops, missing await to store new olm sessions!
This commit is contained in:
parent
3678045e8d
commit
30525cf391
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue