From c7370d7b0137c8c19fbabee8e1f859713831c2e3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 21 Sep 2020 14:11:28 +0200 Subject: [PATCH] Use continue in for loop rather than return this was running in a Promise.all(array.map)) closure before --- src/matrix/Sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 4ff55319..c520003b 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -246,7 +246,7 @@ export class Sync { // ignore rooms with empty timelines during initial sync, // see https://github.com/vector-im/hydrogen-web/issues/15 if (isInitialSync && timelineIsEmpty(roomResponse)) { - return; + continue; } let room = this._session.rooms.get(roomId); if (!room) {