Skip to content

Commit

Permalink
unread-count: referencing wrong unreads
Browse files Browse the repository at this point in the history
  • Loading branch information
arthyn committed Feb 9, 2024
1 parent 793f135 commit 9dd32f7
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 9dd32f7

Please sign in to comment.