Use emitUpdateForEntry
This commit is contained in:
parent
4fa32bac2f
commit
b238357c53
1 changed files with 1 additions and 3 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue