From fc2c62e8964fcaedff8f65fe9d7eea95cf2c6c0d Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 18 Aug 2016 15:19:24 +0100 Subject: [PATCH] We can use the new consts here --- src/components/views/rooms/RoomTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index e520b0bb00..dd1ca125aa 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -186,8 +186,8 @@ module.exports = React.createClass({ 'mx_RoomTile': true, 'mx_RoomTile_selected': this.props.selected, 'mx_RoomTile_unread': this.props.unread, - 'mx_RoomTile_unreadNotify': notificationCount > 0 && this._shouldShowNotifBadge(), - 'mx_RoomTile_highlight': this.props.highlight && this._shouldShowMentionBadge(), + 'mx_RoomTile_unreadNotify': notifBadges, + 'mx_RoomTile_highlight': mentionBadges, 'mx_RoomTile_invited': (me && me.membership == 'invite'), 'mx_RoomTile_notificationTagMenu': this.state.notificationTagMenu, 'mx_RoomTile_noBadges': !badges,