forked from mystiq/hydrogen-web
Update comment
This commit is contained in:
parent
4418700589
commit
9f1764c325
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue