From fda211e7b33ff0a71c9c9c2fcf46d7fbe39b99fb Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 11 Jan 2022 13:10:40 +0530 Subject: [PATCH] Remove dead code --- src/matrix/room/timeline/Timeline.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 1bf68795..de1a50cf 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -289,8 +289,10 @@ export class Timeline { for (const entry of entries) { const fetchedEntry = this._contextEntriesNotInTimeline.get(entry.id); if (fetchedEntry) { - fetchedEntry.contextForEntries.forEach(e => e.setContextEntry(entry)); - entry.updateFrom(fetchedEntry); + fetchedEntry.contextForEntries.forEach(e => { + e.setContextEntry(entry); + this._updateEntry(e); + }); this._contextEntriesNotInTimeline.delete(entry.id); } }