mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
don't redeclare retryEntries, or they won't get passed to writeSync
This commit is contained in:
parent
56db210763
commit
e85844f482
@ -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
|
// when new keys arrive, also see if any events that can now be retried to decrypt
|
||||||
if (newKeys) {
|
if (newKeys) {
|
||||||
const nestedEntries = await Promise.all(newKeys.map(key => this._getRetryDecryptEntriesForKey(key, txn)));
|
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) {
|
if (retryEntries.length) {
|
||||||
log.set("retry", retryEntries.length);
|
log.set("retry", retryEntries.length);
|
||||||
events = events.concat(retryEntries.map(entry => entry.event));
|
events = events.concat(retryEntries.map(entry => entry.event));
|
||||||
|
Loading…
Reference in New Issue
Block a user