mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
Update comment
This commit is contained in:
parent
4418700589
commit
9f1764c325
@ -267,11 +267,11 @@ export class Timeline {
|
|||||||
if (!relatedEntry) {
|
if (!relatedEntry) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// update dependents with this new entry indicating that this is an update to contextEntry
|
|
||||||
const newEntry = this._createEntryFromRelatedEntries(entry, relatedEntry);
|
const newEntry = this._createEntryFromRelatedEntries(entry, relatedEntry);
|
||||||
if (newEntry) {
|
if (newEntry) {
|
||||||
Timeline._entryUpdater(relatedEntry, newEntry);
|
Timeline._entryUpdater(relatedEntry, newEntry);
|
||||||
this._contextEntriesNotInTimeline.set(newEntry.id, newEntry);
|
this._contextEntriesNotInTimeline.set(newEntry.id, newEntry);
|
||||||
|
// update other entries for which this entry is a context entry
|
||||||
relatedEntry.contextForEntries?.forEach(e => {
|
relatedEntry.contextForEntries?.forEach(e => {
|
||||||
this._remoteEntries.findAndUpdate(te => te.id === e.id, () => { return { reply: newEntry }; });
|
this._remoteEntries.findAndUpdate(te => te.id === e.id, () => { return { reply: newEntry }; });
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user