don't show notification count in expanded room section header

pull/21833/head
Bruno Windels 2018-10-19 14:50:35 +02:00
parent acd383c6a9
commit e4276d9378
1 changed files with 13 additions and 11 deletions

View File

@ -263,12 +263,13 @@ const RoomSubList = React.createClass({
const subListNotifCount = subListNotifications[0];
const subListNotifHighlight = subListNotifications[1];
let badge;
if (this.state.hidden) {
const badgeClasses = classNames({
'mx_RoomSubList_badge': true,
'mx_RoomSubList_badgeHighlight': subListNotifHighlight,
});
let badge;
if (subListNotifCount > 0) {
badge = <div className={badgeClasses} onClick={this._onNotifBadgeClick}>
{ FormattingUtils.formatCount(subListNotifCount) }
@ -277,6 +278,7 @@ const RoomSubList = React.createClass({
// no notifications but highlight anyway because this is an invite badge
badge = <div className={badgeClasses} onClick={this._onInviteBadgeClick}>!</div>;
}
}
// When collapsed, allow a long hover on the header to show user
// the full tag name and room count