diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index 198652c7..dc6549a9 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -180,7 +180,7 @@ export class Room extends EventEmitter { // when new keys arrive, also see if any events that can now be retried to decrypt if (newKeys) { const nestedEntries = await Promise.all(newKeys.map(key => this._getRetryDecryptEntriesForKey(key, txn))); - const retryEntries = nestedEntries.reduce((allEntries, entries) => allEntries.concat(entries), []); + retryEntries = nestedEntries.reduce((allEntries, entries) => allEntries.concat(entries), []); if (retryEntries.length) { log.set("retry", retryEntries.length); events = events.concat(retryEntries.map(entry => entry.event));