mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
dont assume there is a rooms section in the sync
This commit is contained in:
parent
a28b2b74d2
commit
9e78f8382a
@ -375,7 +375,7 @@ export class Sync {
|
|||||||
|
|
||||||
_parseInvites(roomsSection) {
|
_parseInvites(roomsSection) {
|
||||||
const inviteStates = [];
|
const inviteStates = [];
|
||||||
if (roomsSection.invite) {
|
if (roomsSection?.invite) {
|
||||||
for (const [roomId, roomResponse] of Object.entries(roomsSection.invite)) {
|
for (const [roomId, roomResponse] of Object.entries(roomsSection.invite)) {
|
||||||
let invite = this._session.invites.get(roomId);
|
let invite = this._session.invites.get(roomId);
|
||||||
let isNewInvite = false;
|
let isNewInvite = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user