From dd382ecb05d85cb37f33f3d93ef84f64e69f02f1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 12 Dec 2018 13:20:10 -0700 Subject: [PATCH] Fix a bug with determining 1:1 rooms We shouldn't consider rooms where people have left or been banned --- src/components/views/rooms/RoomTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index 2f95aab97a..fa18a0687b 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -252,7 +252,7 @@ module.exports = React.createClass({ const badges = notifBadges || mentionBadges; const isJoined = this.props.room.getMyMembership() === "join"; - const looksLikeDm = this.props.room.currentState.getMembers().length === 2; + const looksLikeDm = this.props.room.getInvitedAndJoinedMemberCount() === 2; let subtext = null; if (!isInvite && isJoined && looksLikeDm) { const selfId = MatrixClientPeg.get().getUserId();