From 9f1764c32591dfca410ffcb9b787626ca26d69f8 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 21 Dec 2021 13:25:30 +0530 Subject: [PATCH] Update comment --- src/matrix/room/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 8956e809..f45f99a3 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -267,11 +267,11 @@ export class Timeline { if (!relatedEntry) { continue; } - // update dependents with this new entry indicating that this is an update to contextEntry const newEntry = this._createEntryFromRelatedEntries(entry, relatedEntry); if (newEntry) { Timeline._entryUpdater(relatedEntry, newEntry); this._contextEntriesNotInTimeline.set(newEntry.id, newEntry); + // update other entries for which this entry is a context entry relatedEntry.contextForEntries?.forEach(e => { this._remoteEntries.findAndUpdate(te => te.id === e.id, () => { return { reply: newEntry }; }); });