diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index 794e1e5cfd..c635f09e2c 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -775,15 +775,14 @@ module.exports = withMatrixClient(React.createClass({ const room = this.props.matrixClient.getRoom(roomId); if (room) { const myMembership = room.getMyMembership(); + // not a DM room if we have are not joined if (myMembership !== 'join') continue; - const isInvite = myMembership === "invite"; - // not a DM room if we have are not joined - // not a DM room if they are not joined const them = this.props.member; + // not a DM room if they are not joined if (!them.membership || them.membership !== 'join') continue; - const highlight = room.getUnreadNotificationCount('highlight') > 0 || isInvite; + const highlight = room.getUnreadNotificationCount('highlight') > 0; tiles.push( , );