Only show it if exactly 2 members, until we get Canonical DMs

pull/21833/head
Michael Telatynski 2019-12-26 18:15:08 +00:00
parent 22fe0add3c
commit e95b67e101
1 changed files with 2 additions and 1 deletions

View File

@ -379,7 +379,8 @@ module.exports = createReactClass({
alt="dm"
/>;
if (this.props.room.getMember(dmUserId).membership === "join") {
const { room } = this.props;
if (room.getMember(dmUserId).membership === "join" && room.getJoinedMemberCount() === 2) {
const UserOnlineDot = sdk.getComponent('rooms.UserOnlineDot');
dmOnline = <UserOnlineDot userId={dmUserId} />;
}