forked from mystiq/hydrogen-web
getTrackedEntry -> findLoadedEventById
This commit is contained in:
parent
31a8227e53
commit
f605608098
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue