forked from mystiq/hydrogen-web
don't redeclare retryEntries, or they won't get passed to writeSync
This commit is contained in:
parent
56db210763
commit
e85844f482
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue