forked from mystiq/hydrogen-web
Merge pull request #343 from vector-im/bwindels/fix-sync-rooms-section-missing
Dont assume there is a rooms section in the sync
This commit is contained in:
commit
57725e745e
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ export class Sync {
|
|||
|
||||
_parseInvites(roomsSection) {
|
||||
const inviteStates = [];
|
||||
if (roomsSection.invite) {
|
||||
if (roomsSection?.invite) {
|
||||
for (const [roomId, roomResponse] of Object.entries(roomsSection.invite)) {
|
||||
let invite = this._session.invites.get(roomId);
|
||||
let isNewInvite = false;
|
||||
|
|
Loading…
Reference in a new issue