forked from mystiq/hydrogen-web
stylistic change
This commit is contained in:
parent
62dcb61536
commit
31a8227e53
1 changed files with 4 additions and 2 deletions
|
@ -313,8 +313,10 @@ export class Timeline {
|
||||||
* @param {EventEntry[]} entries
|
* @param {EventEntry[]} entries
|
||||||
*/
|
*/
|
||||||
async _loadContextEntriesWhereNeeded(entries) {
|
async _loadContextEntriesWhereNeeded(entries) {
|
||||||
const entriesNeedingContext = entries.filter(e => !!e.contextEventId);
|
for (const entry of entries) {
|
||||||
for (const entry of entriesNeedingContext) {
|
if (!entry.contextEventId) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const id = entry.contextEventId;
|
const id = entry.contextEventId;
|
||||||
let contextEvent = this._getTrackedEntry(id);
|
let contextEvent = this._getTrackedEntry(id);
|
||||||
if (!contextEvent) {
|
if (!contextEvent) {
|
||||||
|
|
Loading…
Reference in a new issue