Skip to content

Commit

Permalink
Merge pull request #3235 from tloncorp/hm/fix-dm-filter-count
Browse files Browse the repository at this point in the history
messages: fix dm filter count
  • Loading branch information
arthyn authored Feb 9, 2024
2 parents 793f135 + 9dd32f7 commit 47f6fc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/logic/useMessagesUnreadCount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export default function useMessagesUnreadCount(): number {
pins
.filter((pin) => whomIsNest(pin))
.reduce((accum, whom) => {
const unread = dmUnreads[whom];
const unread = channelUnreads[whom];
return unread?.count > 0 ? accum + 1 : accum;
}, 0),
[pins, dmUnreads]
[pins, channelUnreads]
);

const unreadCount = useMemo(() => {
Expand Down

0 comments on commit 47f6fc4

Please sign in to comment.