diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 98ec789a7c..bb4c6d336a 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -229,10 +229,6 @@ module.exports = React.createClass({ else if (HIDE_CONFERENCE_CHANS && Rooms.isConfCallRoom(room, me, self.props.ConferenceHandler)) { // skip past this room & don't put it in any lists } - else if (dmRoomMap.getUserIdForRoomId(room.roomId)) { - // "Direct Message" rooms - s.lists["im.vector.fake.direct"].push(room); - } else if (me.membership == "join" || me.membership === "ban" || (me.membership === "leave" && me.events.member.getSender() !== me.events.member.getStateKey())) { @@ -246,6 +242,10 @@ module.exports = React.createClass({ s.lists[tagNames[i]].push(room); } } + else if (dmRoomMap.getUserIdForRoomId(room.roomId)) { + // "Direct Message" rooms (that we're still in and that aren't otherwise tagged) + s.lists["im.vector.fake.direct"].push(room); + } else { s.lists["im.vector.fake.recent"].push(room); }