Only count unread stats for other tabs

This commit is contained in:
Jamie Kyle 2023-08-21 13:12:27 -07:00 committed by GitHub
parent 04f716986c
commit 0e19255256
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 67 additions and 42 deletions

View file

@ -9,7 +9,7 @@ import { WhatsNewLink } from './WhatsNewLink';
import type { UnreadStats } from '../util/countUnreadStats';
type ChatsTabProps = Readonly<{
appUnreadStats: UnreadStats;
otherTabsUnreadStats: UnreadStats;
i18n: LocalizerType;
hasPendingUpdate: boolean;
hasFailedStorySends: boolean;
@ -24,7 +24,7 @@ type ChatsTabProps = Readonly<{
}>;
export function ChatsTab({
appUnreadStats,
otherTabsUnreadStats,
i18n,
hasPendingUpdate,
hasFailedStorySends,
@ -41,7 +41,7 @@ export function ChatsTab({
<>
<div id="LeftPane">
{renderLeftPane({
appUnreadStats,
otherTabsUnreadStats,
collapsed: navTabsCollapsed,
hasPendingUpdate,
hasFailedStorySends,