mirror of https://github.com/vector-im/riot-web
Only show it if exactly 2 members, until we get Canonical DMs
parent
22fe0add3c
commit
e95b67e101
|
@ -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} />;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue