forgot await, this broke updating the timeline when fetching key backup

This commit is contained in:
Bruno Windels 2021-03-03 17:50:38 +01:00
parent 423a0664cd
commit aa23672694

View file

@ -83,7 +83,7 @@ export class Room extends EventEmitter {
this._storage.storeNames.timelineEvents,
this._storage.storeNames.inboundGroupSessions,
]);
const retryEntries = this._getRetryDecryptEntriesForKey(roomKey, txn);
const retryEntries = await this._getRetryDecryptEntriesForKey(roomKey, txn);
if (retryEntries.length) {
const decryptRequest = this._decryptEntries(DecryptionSource.Retry, retryEntries, txn);
// this will close txn while awaiting decryption