Encourage counts if the user has a mention (red state)

pull/21833/head
Travis Ralston 2020-06-19 16:03:38 -06:00
parent eeb408a081
commit 8201eed929
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ export default class NotificationBadge extends React.PureComponent<IProps, IStat
const hasNotif = this.props.notification.color >= NotificationColor.Red;
const hasCount = this.props.notification.color >= NotificationColor.Grey;
const hasUnread = this.props.notification.color >= NotificationColor.Bold;
const couldBeEmpty = !this.state.showCounts || hasUnread;
const couldBeEmpty = (!this.state.showCounts || hasUnread) && !hasNotif;
let isEmptyBadge = couldBeEmpty && (!this.state.showCounts || !hasCount);
if (this.props.forceCount) {
isEmptyBadge = false;