Skip to content

Commit

Permalink
Fix unread checker ignoring unread filter
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolemos committed Jul 1, 2019
1 parent ee2761c commit ca93612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function UnreadCountProvider(props: UnreadCountProviderProps) {
getFilteredItems(
column.type,
allItems,
{ ...column.filters, unread: undefined },
column.filters,
getFilteredItemsOptions,
),
)
Expand Down
5 changes: 2 additions & 3 deletions packages/components/src/components/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ const SidebarColumnItem = React.memo(
getFilteredItems(
column.type,
allItems,
{ ...column.filters, unread: undefined },
column.filters,
getFilteredItemsOptions,
),
)
Expand All @@ -631,8 +631,7 @@ const SidebarColumnItem = React.memo(
? 'participating'
: 'all'

const isUnread =
filteredItemsMetadata.inbox[inbox].unread > 0 ? true : false
const isUnread = filteredItemsMetadata.inbox[inbox].unread > 0

const label = `${headerDetails.title ||
headerDetails.subtitle ||
Expand Down

0 comments on commit ca93612

Please sign in to comment.