Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5084 from matrix-org/bwindels/fixinvitedialogcras…
Browse files Browse the repository at this point in the history
…h-release

Add null guard in InviteDialog
  • Loading branch information
bwindels authored Aug 4, 2020
2 parents 5e67c07 + dc5ca0e commit a63ff13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/dialogs/InviteDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default class InviteDialog extends React.PureComponent {

// Also pull in all the rooms tagged as DefaultTagID.DM so we don't miss anything. Sometimes the
// room list doesn't tag the room for the DMRoomMap, but does for the room list.
const dmTaggedRooms = RoomListStore.instance.orderedLists[DefaultTagID.DM];
const dmTaggedRooms = RoomListStore.instance.orderedLists[DefaultTagID.DM] || [];
const myUserId = MatrixClientPeg.get().getUserId();
for (const dmRoom of dmTaggedRooms) {
const otherMembers = dmRoom.getJoinedMembers().filter(u => u.userId !== myUserId);
Expand Down

0 comments on commit a63ff13

Please sign in to comment.