You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Only show it if exactly 2 members, until we get Canonical DMs
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user