forked from mystiq/hydrogen-web
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);
|
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");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue