can only look in remote entries here as PEEs never return an event id

This commit is contained in:
Bruno Windels 2021-05-27 10:28:02 +02:00
parent 5e9ce365bf
commit 2da7ef4280

View file

@ -102,7 +102,7 @@ export class Timeline {
if (!foundInLocalEntries && pe.relatedEventId) {
// TODO: ideally iterate in reverse as target is likely to be most recent,
// but not easy through ObservableList contract
for (const entry of this._allEntries) {
for (const entry of this._remoteEntries) {
if (pe.relatedEventId === entry.id) {
const params = updater(entry);
if (params) {