You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
show invite count in invite sublist header
This commit is contained in:
@@ -254,9 +254,9 @@ const RoomSubList = React.createClass({
|
|||||||
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 && this.props.list.length) {
|
||||||
// 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}>{this.props.list.length}</div>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user