forked from mystiq/hydrogen-web
dont assume there is a rooms section in the sync
This commit is contained in:
parent
a28b2b74d2
commit
9e78f8382a
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