Not joined members any more

pull/21833/head
David Baker 2016-09-21 09:57:17 +01:00
parent d1a5e54a69
commit 5b216df28e
1 changed files with 2 additions and 2 deletions

View File

@ -68,11 +68,11 @@ export function looksLikeDirectMessageRoom(room, me) {
// Used to split rooms via tags
const tagNames = Object.keys(room.tags);
// 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
// been moved to a different tag section
if (joinedMembers.length === 2 && !tagNames.length) {
if (members.length === 2 && !tagNames.length) {
return true;
}
}