You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Merge pull request #2762 from matrix-org/dbkr/duplicated-people
Don't duplicate direct chats from other tags
This commit is contained in:
@@ -319,7 +319,9 @@ class RoomListStore extends Store {
|
|||||||
const dmRoomMap = DMRoomMap.shared();
|
const dmRoomMap = DMRoomMap.shared();
|
||||||
if (myMembership === 'invite') {
|
if (myMembership === 'invite') {
|
||||||
tags.push("im.vector.fake.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");
|
tags.push("im.vector.fake.direct");
|
||||||
} else if (tags.length === 0) {
|
} else if (tags.length === 0) {
|
||||||
tags.push("im.vector.fake.recent");
|
tags.push("im.vector.fake.recent");
|
||||||
|
|||||||
Reference in New Issue
Block a user