mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +01:00
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
@ -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…
x
Reference in New Issue
Block a user