mirror of https://github.com/vector-im/riot-web
Merge pull request #2735 from matrix-org/travis/duplicated-people
Don't duplicate direct chats from other tagspull/21833/head
commit
7d9e58b3c3
|
@ -319,7 +319,9 @@ class RoomListStore extends Store {
|
|||
const dmRoomMap = DMRoomMap.shared();
|
||||
if (myMembership === 'invite') {
|
||||
tags.push("im.vector.fake.invite");
|
||||
} else if (dmRoomMap.getUserIdForRoomId(room.roomId)) {
|
||||
} else if (dmRoomMap.getUserIdForRoomId(room.roomId) && tags.length === 0) {
|
||||
// We intentionally don't duplicate rooms in other tags into the people list
|
||||
// as a feature.
|
||||
tags.push("im.vector.fake.direct");
|
||||
} else if (tags.length === 0) {
|
||||
tags.push("im.vector.fake.recent");
|
||||
|
|
Loading…
Reference in New Issue