Notification for failed story sends
This commit is contained in:
parent
4c2f169783
commit
e11f961d7a
7 changed files with 67 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue