From 818061d53bd85e2df98b22bf8f225f0c61c4c7be Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 29 Jan 2019 16:20:25 +0100 Subject: [PATCH] show invite count in invite sublist header --- src/components/structures/RoomSubList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index 676e0e6976..04d1fb4e39 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -254,9 +254,9 @@ const RoomSubList = React.createClass({ badge =
{ FormattingUtils.formatCount(subListNotifCount) }
; - } 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 - badge =
!
; + badge =
{this.props.list.length}
; } }