Skip to content

Commit

Permalink
fix: show unread indicator when there is unread count for the channel
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Jan 2, 2025
1 parent a596287 commit 166e196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/components/MessageList/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ const MessageListWithContext = <
return;
}

if (unreadIndicatorDate && lastItemDate > unreadIndicatorDate) {
if (channel.countUnread() && unreadIndicatorDate && lastItemDate > unreadIndicatorDate) {
setIsUnreadNotificationOpen(true);
} else {
setIsUnreadNotificationOpen(false);
Expand Down

0 comments on commit 166e196

Please sign in to comment.