mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
english
This commit is contained in:
parent
e7598b9c76
commit
404dbcd065
@ -159,7 +159,7 @@ export class Room extends EventEmitter {
|
|||||||
async _prepareSyncDecryption(events, newKeys, roomEncryption, txn, log) {
|
async _prepareSyncDecryption(events, newKeys, roomEncryption, txn, log) {
|
||||||
let retryEntries;
|
let retryEntries;
|
||||||
let decryptPreparation;
|
let decryptPreparation;
|
||||||
// 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 can now be retried to decrypt
|
||||||
if (newKeys) {
|
if (newKeys) {
|
||||||
const entriesPerKey = await Promise.all(newKeys.map(key => this._getRetryDecryptEntriesForKey(key, txn)));
|
const entriesPerKey = await Promise.all(newKeys.map(key => this._getRetryDecryptEntriesForKey(key, txn)));
|
||||||
retryEntries = entriesPerKey.reduce((allEntries, entries) => allEntries.concat(entries), []);
|
retryEntries = entriesPerKey.reduce((allEntries, entries) => allEntries.concat(entries), []);
|
||||||
|
Loading…
Reference in New Issue
Block a user