Use continue in for loop rather than return
this was running in a Promise.all(array.map)) closure before
This commit is contained in:
parent
2c6a3a7ce7
commit
c7370d7b01
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ export class Sync {
|
||||||
// ignore rooms with empty timelines during initial sync,
|
// ignore rooms with empty timelines during initial sync,
|
||||||
// see https://github.com/vector-im/hydrogen-web/issues/15
|
// see https://github.com/vector-im/hydrogen-web/issues/15
|
||||||
if (isInitialSync && timelineIsEmpty(roomResponse)) {
|
if (isInitialSync && timelineIsEmpty(roomResponse)) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
let room = this._session.rooms.get(roomId);
|
let room = this._session.rooms.get(roomId);
|
||||||
if (!room) {
|
if (!room) {
|
||||||
|
|
Reference in a new issue