mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add jsdoc comment
This commit is contained in:
parent
90c9018aa4
commit
a2ab36480f
@ -329,8 +329,13 @@ export class Timeline {
|
||||
}
|
||||
}
|
||||
|
||||
_getTrackedEntry(id) {
|
||||
return this.getByEventId(id) ?? this._contextEntriesNotInTimeline.get(id);
|
||||
/**
|
||||
* Fetches an entry with the given event-id from remoteEntries or contextEntriesNotInTimeline.
|
||||
* @param {string} eventId event-id of the entry
|
||||
* @returns entry if found, undefined otherwise
|
||||
*/
|
||||
_getTrackedEntry(eventId) {
|
||||
return this.getByEventId(eventId) ?? this._contextEntriesNotInTimeline.get(eventId);
|
||||
}
|
||||
|
||||
async _getEventFromStorage(eventId) {
|
||||
|
Loading…
Reference in New Issue
Block a user