Do not count DOE stories in the unread count
This commit is contained in:
parent
f735a9cfa7
commit
71382b8f65
1 changed files with 6 additions and 2 deletions
|
@ -364,7 +364,10 @@ export const getUnreadStorySenderCount = createSelector(
|
|||
({ stories }): number => {
|
||||
return new Set(
|
||||
stories
|
||||
.filter(story => story.readStatus === ReadStatus.Unread)
|
||||
.filter(
|
||||
story =>
|
||||
story.readStatus === ReadStatus.Unread && !story.deletedForEveryone
|
||||
)
|
||||
.map(story => story.conversationId)
|
||||
).size;
|
||||
}
|
||||
|
@ -388,7 +391,8 @@ export const getHasStoriesSelector = createSelector(
|
|||
}
|
||||
|
||||
return conversationStories.some(
|
||||
story => story.readStatus === ReadStatus.Unread
|
||||
story =>
|
||||
story.readStatus === ReadStatus.Unread && !story.deletedForEveryone
|
||||
)
|
||||
? HasStories.Unread
|
||||
: HasStories.Read;
|
||||
|
|
Loading…
Reference in a new issue