From 0a09a50ab91251d8107c84bc76938097be7ad964 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 7 Jan 2022 17:29:17 +0530 Subject: [PATCH] Move line into if --- 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 f74d6acf..2e793be1 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -230,8 +230,8 @@ export class Timeline { const oldEntry = this._contextEntriesNotInTimeline.get(entry.id) if (oldEntry) { Timeline._entryUpdater(oldEntry, entry); + this._contextEntriesNotInTimeline.set(entry.id, entry); } - this._contextEntriesNotInTimeline.set(entry.id, entry); // Since this entry changed, all dependent entries should be updated entry.contextForEntries?.forEach(e => this._updateEntry(e)); } catch (err) {