mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-09 02:58:18 +01:00
Use emitUpdateForEntry
This commit is contained in:
parent
4fa32bac2f
commit
b238357c53
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user