flush key backup after coming online

This commit is contained in:
Bruno Windels 2022-01-31 14:36:35 +01:00
parent ae5cc17290
commit 7eb0d347f5

View file

@ -473,6 +473,7 @@ export class Session {
if (ssssKey) { if (ssssKey) {
// txn will end here as this does a network request // txn will end here as this does a network request
await this._createKeyBackup(ssssKey, txn, log); await this._createKeyBackup(ssssKey, txn, log);
this._keyBackup.get()?.flush();
} }
} }
// restore unfinished operations, like sending out room keys // restore unfinished operations, like sending out room keys