From 3c2403ca5492e48ac5865ffc1831ca2f5775065c Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 1 Mar 2019 15:29:24 -0700 Subject: [PATCH] Don't duplicate direct chats from other tags Fixes https://github.com/vector-im/riot-web/issues/8971 --- src/stores/RoomListStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/RoomListStore.js b/src/stores/RoomListStore.js index e9ac33b506..8355e29f6c 100644 --- a/src/stores/RoomListStore.js +++ b/src/stores/RoomListStore.js @@ -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");