Fix a bug with determining 1:1 rooms
We shouldn't consider rooms where people have left or been banned
This commit is contained in:
parent
cd9ea2b2d7
commit
dd382ecb05
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ module.exports = React.createClass({
|
||||||
const badges = notifBadges || mentionBadges;
|
const badges = notifBadges || mentionBadges;
|
||||||
|
|
||||||
const isJoined = this.props.room.getMyMembership() === "join";
|
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;
|
let subtext = null;
|
||||||
if (!isInvite && isJoined && looksLikeDm) {
|
if (!isInvite && isJoined && looksLikeDm) {
|
||||||
const selfId = MatrixClientPeg.get().getUserId();
|
const selfId = MatrixClientPeg.get().getUserId();
|
||||||
|
|
Loading…
Reference in a new issue