Do not count DOE stories in the unread count
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user