Notification for failed story sends

This commit is contained in:
Josh Perez 2023-02-07 14:33:04 -05:00 committed by GitHub
parent 4c2f169783
commit e11f961d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 67 additions and 3 deletions

View file

@ -28,6 +28,7 @@ export type PropsType = {
profileName?: string;
theme: ThemeType;
title: string;
hasFailedStorySends?: boolean;
unreadStoriesCount: number;
showArchivedConversations: () => void;
@ -149,6 +150,7 @@ export class MainHeader extends React.Component<PropsType, StateType> {
avatarPath,
badge,
color,
hasFailedStorySends,
hasPendingUpdate,
i18n,
name,
@ -251,7 +253,10 @@ export class MainHeader extends React.Component<PropsType, StateType> {
title={i18n('stories')}
type="button"
>
{unreadStoriesCount ? (
{hasFailedStorySends && (
<span className="module-main-header__stories-badge">!</span>
)}
{!hasFailedStorySends && unreadStoriesCount ? (
<span className="module-main-header__stories-badge">
{unreadStoriesCount}
</span>