Merge pull request #104 from vector-im/bwindels/cantlogin

Fix unable to login if you have rooms without any events in the initial sync
This commit is contained in:
Bruno Windels 2020-09-21 12:16:46 +00:00 committed by GitHub
commit a86b25736c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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