mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Only show it if exactly 2 members, until we get Canonical DMs
This commit is contained in:
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
Block a user