Use continue in for loop rather than return

this was running in a Promise.all(array.map)) closure before
This commit is contained in:
Bruno Windels 2020-09-21 14:11:28 +02:00
parent 2c6a3a7ce7
commit c7370d7b01

View file

@ -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) {