From 2da7ef4280d7f0ac1b88eb630fc401ac721810df Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 27 May 2021 10:28:02 +0200 Subject: [PATCH] can only look in remote entries here as PEEs never return an event id --- src/matrix/room/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index b364eedb..5ba65c4d 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -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) {