Notification for failed story sends
This commit is contained in:
parent
4c2f169783
commit
e11f961d7a
7 changed files with 67 additions and 3 deletions
|
@ -576,3 +576,16 @@ export const getHasAllStoriesUnmuted = createSelector(
|
|||
getStoriesState,
|
||||
({ hasAllStoriesUnmuted }): boolean => hasAllStoriesUnmuted
|
||||
);
|
||||
|
||||
export const getHasAnyFailedStorySends = createSelector(
|
||||
getStoriesState,
|
||||
({ lastOpenedAtTimestamp, stories }): boolean => {
|
||||
return stories.some(
|
||||
story =>
|
||||
story.timestamp > (lastOpenedAtTimestamp || 0) &&
|
||||
Object.values(story.sendStateByConversationId || {}).some(
|
||||
({ status }) => status === SendStatus.Failed
|
||||
)
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue