stylistic change

This commit is contained in:
RMidhunSuresh 2022-01-11 13:14:13 +05:30
parent 62dcb61536
commit 31a8227e53

View file

@ -313,8 +313,10 @@ export class Timeline {
* @param {EventEntry[]} entries
*/
async _loadContextEntriesWhereNeeded(entries) {
const entriesNeedingContext = entries.filter(e => !!e.contextEventId);
for (const entry of entriesNeedingContext) {
for (const entry of entries) {
if (!entry.contextEventId) {
continue;
}
const id = entry.contextEventId;
let contextEvent = this._getTrackedEntry(id);
if (!contextEvent) {