No need to delete before update on map

This commit is contained in:
RMidhunSuresh 2021-12-21 12:10:16 +05:30
parent 41cf6460d0
commit d2c7eec8e0

View file

@ -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 }; });