From d2c7eec8e04268ea96d2456da952a02dc1b87659 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 21 Dec 2021 12:10:16 +0530 Subject: [PATCH] No need to delete before update on map --- src/matrix/room/timeline/Timeline.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 08f3c68b..62a2a7b9 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -271,7 +271,6 @@ export class Timeline { const newEntry = this._createEntryFromRelatedEntries(entry, relatedEntry); if (newEntry) { Timeline._entryUpdater(relatedEntry, newEntry); - this._contextEntriesNotInTimeline.delete(relatedEntry.id); this._contextEntriesNotInTimeline.set(newEntry.id, newEntry); relatedEntry.contextForEntries?.forEach(e => { this._remoteEntries.findAndUpdate(te => te.id === e.id, () => { return { reply: newEntry }; });