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
always show badges in room sub list header
This commit is contained in:
@@ -266,19 +266,17 @@ const RoomSubList = React.createClass({
|
|||||||
|
|
||||||
|
|
||||||
let badge;
|
let badge;
|
||||||
if (this.state.hidden) {
|
const badgeClasses = classNames({
|
||||||
const badgeClasses = classNames({
|
'mx_RoomSubList_badge': true,
|
||||||
'mx_RoomSubList_badge': true,
|
'mx_RoomSubList_badgeHighlight': subListNotifHighlight,
|
||||||
'mx_RoomSubList_badgeHighlight': subListNotifHighlight,
|
});
|
||||||
});
|
if (subListNotifCount > 0) {
|
||||||
if (subListNotifCount > 0) {
|
badge = <div className={badgeClasses} onClick={this._onNotifBadgeClick}>
|
||||||
badge = <div className={badgeClasses} onClick={this._onNotifBadgeClick}>
|
{ FormattingUtils.formatCount(subListNotifCount) }
|
||||||
{ FormattingUtils.formatCount(subListNotifCount) }
|
</div>;
|
||||||
</div>;
|
} else if (this.props.isInvite) {
|
||||||
} else if (this.props.isInvite) {
|
// no notifications but highlight anyway because this is an invite badge
|
||||||
// no notifications but highlight anyway because this is an invite badge
|
badge = <div className={badgeClasses} onClick={this._onInviteBadgeClick}>!</div>;
|
||||||
badge = <div className={badgeClasses} onClick={this._onInviteBadgeClick}>!</div>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// When collapsed, allow a long hover on the header to show user
|
// When collapsed, allow a long hover on the header to show user
|
||||||
|
|||||||
Reference in New Issue
Block a user