diff --git a/src/app/features/search/Search.tsx b/src/app/features/search/Search.tsx index e326bf04..9d4ea351 100644 --- a/src/app/features/search/Search.tsx +++ b/src/app/features/search/Search.tsx @@ -342,7 +342,7 @@ export function Search({ requestClose }: SearchProps) { 0} - count={unread.total} + count={unread.highlight > 0 ? unread.highlight : unread.total} /> )} diff --git a/src/app/pages/client/sidebar/DirectTab.tsx b/src/app/pages/client/sidebar/DirectTab.tsx index 01d7ce3f..37473bf8 100644 --- a/src/app/pages/client/sidebar/DirectTab.tsx +++ b/src/app/pages/client/sidebar/DirectTab.tsx @@ -108,7 +108,10 @@ export function DirectTab() { {directUnread && ( 0}> - 0} count={directUnread.total} /> + 0} + count={directUnread.highlight > 0 ? directUnread.highlight : directUnread.total} + /> )} {menuAnchor && ( diff --git a/src/app/pages/client/sidebar/HomeTab.tsx b/src/app/pages/client/sidebar/HomeTab.tsx index 74f7adfa..a19aee98 100644 --- a/src/app/pages/client/sidebar/HomeTab.tsx +++ b/src/app/pages/client/sidebar/HomeTab.tsx @@ -110,7 +110,10 @@ export function HomeTab() { {homeUnread && ( 0}> - 0} count={homeUnread.total} /> + 0} + count={homeUnread.highlight > 0 ? homeUnread.highlight : homeUnread.total} + /> )} {menuAnchor && ( diff --git a/src/app/pages/client/sidebar/SpaceTabs.tsx b/src/app/pages/client/sidebar/SpaceTabs.tsx index 99f54040..bc3927da 100644 --- a/src/app/pages/client/sidebar/SpaceTabs.tsx +++ b/src/app/pages/client/sidebar/SpaceTabs.tsx @@ -466,7 +466,10 @@ function SpaceTab({ {unread && ( 0}> - 0} count={unread.total} /> + 0} + count={unread.highlight > 0 ? unread.highlight : unread.total} + /> )} {menuAnchor && ( @@ -598,7 +601,10 @@ function ClosedSpaceFolder({ {unread && ( 0}> - 0} count={unread.total} /> + 0} + count={unread.highlight > 0 ? unread.highlight : unread.total} + /> )}