put detached logs in correct log item

This commit is contained in:
Bruno Windels 2022-11-03 16:37:53 +01:00
parent dfede83c0b
commit dd7bbe89ac

View File

@ -168,7 +168,7 @@ export class BaseRoom extends EventEmitter {
} }
if (isTimelineOpen && decryption.hasUnverifiedSenders) { if (isTimelineOpen && decryption.hasUnverifiedSenders) {
// verify missing senders async and update timeline once done so we don't delay rendering with network requests // verify missing senders async and update timeline once done so we don't delay rendering with network requests
log.wrapDetached("fetch unknown senders keys", async () => { log.wrapDetached("fetch unknown senders keys", async log => {
const newlyVerifiedDecryption = await decryption.fetchAndVerifyRemainingSenders(this._hsApi, log); const newlyVerifiedDecryption = await decryption.fetchAndVerifyRemainingSenders(this._hsApi, log);
const verifiedEntries = []; const verifiedEntries = [];
newlyVerifiedDecryption.applyToEntries(entries, entry => verifiedEntries.push(entry)); newlyVerifiedDecryption.applyToEntries(entries, entry => verifiedEntries.push(entry));