From f605608098705399d599f9b978020989046d682f Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 11 Jan 2022 13:20:42 +0530 Subject: [PATCH] getTrackedEntry -> findLoadedEventById --- src/matrix/room/timeline/Timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 8dbe8b69..635ad0ce 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -318,7 +318,7 @@ export class Timeline { continue; } const id = entry.contextEventId; - let contextEvent = this._getTrackedEntry(id); + let contextEvent = this._findLoadedEventById(id); if (!contextEvent) { contextEvent = await this._getEventFromStorage(id) ?? await this._getEventFromHomeserver(id); if (contextEvent) { @@ -339,7 +339,7 @@ export class Timeline { * @param {string} eventId event-id of the entry * @returns entry if found, undefined otherwise */ - _getTrackedEntry(eventId) { + _findLoadedEventById(eventId) { return this.getByEventId(eventId) ?? this._contextEntriesNotInTimeline.get(eventId); }