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