mirror of https://github.com/vector-im/riot-web
+99 badge when notifications are greater the 99
parent
762873350a
commit
922bb0f402
|
@ -105,7 +105,8 @@ module.exports = React.createClass({
|
|||
if (this.state.badgeHover) {
|
||||
badgeContent = "\u00B7\u00B7\u00B7";
|
||||
} else if (this.props.highlight || notificationCount > 0) {
|
||||
badgeContent = notificationCount ? notificationCount : '!';
|
||||
var limitedCount = (notificationCount > 99) ? '+99' : notificationCount;
|
||||
badgeContent = notificationCount ? limitedCount : '!';
|
||||
} else {
|
||||
badgeContent = '\u200B';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue