Skip to content

Commit

Permalink
Merge pull request #343 from vector-im/bwindels/fix-sync-rooms-sectio…
Browse files Browse the repository at this point in the history
…n-missing

Dont assume there is a rooms section in the sync
  • Loading branch information
bwindels authored May 6, 2021
2 parents a28b2b7 + 9e78f83 commit 57725e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrix/Sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57725e7

Please sign in to comment.