diff --git a/src/components/views/dialogs/DMInviteDialog.js b/src/components/views/dialogs/DMInviteDialog.js index 1a6e387f46..ceab2fea02 100644 --- a/src/components/views/dialogs/DMInviteDialog.js +++ b/src/components/views/dialogs/DMInviteDialog.js @@ -333,7 +333,7 @@ export default class DMInviteDialog extends React.PureComponent { // Generates { userId: {member, rooms[]} } const memberRooms = joinedRooms.reduce((members, room) => { // Filter out DMs (we'll handle these in the recents section) - if (!!DMRoomMap.shared().getUserIdForRoomId(room.roomId)) { + if (DMRoomMap.shared().getUserIdForRoomId(room.roomId)) { return members; // Do nothing }