suppress private icon if the room is a DM
parent
808785c2f8
commit
df1fd4db72
|
@ -309,6 +309,8 @@ module.exports = createReactClass({
|
||||||
|
|
||||||
const isMenuDisplayed = Boolean(this.state.contextMenuPosition);
|
const isMenuDisplayed = Boolean(this.state.contextMenuPosition);
|
||||||
|
|
||||||
|
const dmUserId = DMRoomMap.shared().getUserIdForRoomId(this.props.room.roomId);
|
||||||
|
|
||||||
const classes = classNames({
|
const classes = classNames({
|
||||||
'mx_RoomTile': true,
|
'mx_RoomTile': true,
|
||||||
'mx_RoomTile_selected': this.state.selected,
|
'mx_RoomTile_selected': this.state.selected,
|
||||||
|
@ -320,7 +322,7 @@ module.exports = createReactClass({
|
||||||
'mx_RoomTile_noBadges': !badges,
|
'mx_RoomTile_noBadges': !badges,
|
||||||
'mx_RoomTile_transparent': this.props.transparent,
|
'mx_RoomTile_transparent': this.props.transparent,
|
||||||
'mx_RoomTile_hasSubtext': subtext && !this.props.collapsed,
|
'mx_RoomTile_hasSubtext': subtext && !this.props.collapsed,
|
||||||
'mx_RoomTile_isPrivate': this.state.join_rule == "invite",
|
'mx_RoomTile_isPrivate': this.state.join_rule == "invite" && !dmUserId,
|
||||||
});
|
});
|
||||||
|
|
||||||
const avatarClasses = classNames({
|
const avatarClasses = classNames({
|
||||||
|
@ -384,8 +386,6 @@ module.exports = createReactClass({
|
||||||
|
|
||||||
let ariaLabel = name;
|
let ariaLabel = name;
|
||||||
|
|
||||||
const dmUserId = DMRoomMap.shared().getUserIdForRoomId(this.props.room.roomId);
|
|
||||||
|
|
||||||
let dmIndicator;
|
let dmIndicator;
|
||||||
let dmOnline;
|
let dmOnline;
|
||||||
if (dmUserId) {
|
if (dmUserId) {
|
||||||
|
|
Loading…
Reference in New Issue