Use emitUpdateForEntry

This commit is contained in:
RMidhunSuresh 2022-01-14 16:14:42 +05:30
parent 4fa32bac2f
commit b238357c53

View file

@ -278,9 +278,7 @@ export class Timeline {
const relatedEntry = this._contextEntriesNotInTimeline.get(entry.relatedEventId); const relatedEntry = this._contextEntriesNotInTimeline.get(entry.relatedEventId);
if (relatedEntry?.isNonPersisted && relatedEntry?.addLocalRelation(entry)) { if (relatedEntry?.isNonPersisted && relatedEntry?.addLocalRelation(entry)) {
// update other entries for which this entry is a context entry // update other entries for which this entry is a context entry
relatedEntry.contextForEntries?.forEach(e => { relatedEntry.contextForEntries?.forEach(e => this._emitUpdateForEntry(e, "contextEntry"));
this._remoteEntries.findAndUpdate(te => te.id === e.id, () => "contextEntry");
});
} }
} }
} }