diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index ecf2de394b..241713c97d 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -380,7 +380,8 @@ module.exports = createReactClass({ />; const { room } = this.props; - if (room.getMember(dmUserId).membership === "join" && room.getJoinedMemberCount() === 2) { + const member = room.getMember(dmUserId); + if (member && member.membership === "join" && room.getJoinedMemberCount() === 2) { const UserOnlineDot = sdk.getComponent('rooms.UserOnlineDot'); dmOnline = ; }