mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add explaining comment
This commit is contained in:
parent
544dca3b18
commit
d924dbb723
@ -256,8 +256,10 @@ export class Timeline {
|
||||
}
|
||||
|
||||
_updateFetchedEntries(entries) {
|
||||
// Update fetchedEntries based on incoming event, eg: a fetched event being redacted
|
||||
for (const entry of entries) {
|
||||
const relatedEntry = this._fetchedEventEntries.get(entry.relatedEventId);
|
||||
// todo: can this be called .addRelation instead?
|
||||
if (relatedEntry?.addLocalRelation(entry)) {
|
||||
relatedEntry.dependents.forEach(e => this._updateEntry(e));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user