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);
if (relatedEntry?.isNonPersisted && relatedEntry?.addLocalRelation(entry)) {
// update other entries for which this entry is a context entry
relatedEntry.contextForEntries?.forEach(e => {
this._remoteEntries.findAndUpdate(te => te.id === e.id, () => "contextEntry");
});
relatedEntry.contextForEntries?.forEach(e => this._emitUpdateForEntry(e, "contextEntry"));
}
}
}