diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index d3fbfa0220..aa83110632 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -95,14 +95,24 @@ module.exports = React.createClass({ name = name.replace(":", ":\u200b"); // add a zero-width space to allow linewrapping after the colon var badge; var badgeContent; - if (this.props.highlight || notificationCount > 0) { - if (this.state.badgeHover) { - badgeContent = "\u00B7 \u00B7 \u00B7"; - } else { - badgeContent = notificationCount ? notificationCount : '!'; - } - badge =
{ badgeContent }
; + var badgeClasses; + + if (this.state.badgeHover) { + badgeContent = "\u00B7\u00B7\u00B7"; + } else if (this.props.highlight || notificationCount > 0) { + badgeContent = notificationCount ? notificationCount : '!'; + } else { + badgeContent = '\u200B'; } + + if (this.props.highlight || notificationCount > 0) { + badgeClasses = "mx_RoomTile_badge"; + } else { + badgeClasses = "mx_RoomTile_badge mx_RoomTile_badge_no_unread"; + } + + badge =
{ badgeContent }
; + /* if (this.props.highlight) { badge =
!
;