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

This commit is contained in:
Michael Telatynski 2019-12-26 18:15:08 +00:00
parent 22fe0add3c
commit e95b67e101

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} />;
}