Not joined members any more
This commit is contained in:
parent
d1a5e54a69
commit
5b216df28e
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ export function looksLikeDirectMessageRoom(room, me) {
|
||||||
// Used to split rooms via tags
|
// Used to split rooms via tags
|
||||||
const tagNames = Object.keys(room.tags);
|
const tagNames = Object.keys(room.tags);
|
||||||
// Used for 1:1 direct chats
|
// Used for 1:1 direct chats
|
||||||
const joinedMembers = room.currentState.getMembers();
|
const members = room.currentState.getMembers();
|
||||||
|
|
||||||
// Show 1:1 chats in seperate "Direct Messages" section as long as they haven't
|
// Show 1:1 chats in seperate "Direct Messages" section as long as they haven't
|
||||||
// been moved to a different tag section
|
// been moved to a different tag section
|
||||||
if (joinedMembers.length === 2 && !tagNames.length) {
|
if (members.length === 2 && !tagNames.length) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue