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 => {
|
({ stories }): number => {
|
||||||
return new Set(
|
return new Set(
|
||||||
stories
|
stories
|
||||||
.filter(story => story.readStatus === ReadStatus.Unread)
|
.filter(
|
||||||
|
story =>
|
||||||
|
story.readStatus === ReadStatus.Unread && !story.deletedForEveryone
|
||||||
|
)
|
||||||
.map(story => story.conversationId)
|
.map(story => story.conversationId)
|
||||||
).size;
|
).size;
|
||||||
}
|
}
|
||||||
|
@ -388,7 +391,8 @@ export const getHasStoriesSelector = createSelector(
|
||||||
}
|
}
|
||||||
|
|
||||||
return conversationStories.some(
|
return conversationStories.some(
|
||||||
story => story.readStatus === ReadStatus.Unread
|
story =>
|
||||||
|
story.readStatus === ReadStatus.Unread && !story.deletedForEveryone
|
||||||
)
|
)
|
||||||
? HasStories.Unread
|
? HasStories.Unread
|
||||||
: HasStories.Read;
|
: HasStories.Read;
|
||||||
|
|
Loading…
Add table
Reference in a new issue