Skip to content

Commit 166e196

Browse files
committed
fix: show unread indicator when there is unread count for the channel
1 parent a596287 commit 166e196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/MessageList/MessageList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ const MessageListWithContext = <
426426
return;
427427
}
428428

429-
if (unreadIndicatorDate && lastItemDate > unreadIndicatorDate) {
429+
if (channel.countUnread() && unreadIndicatorDate && lastItemDate > unreadIndicatorDate) {
430430
setIsUnreadNotificationOpen(true);
431431
} else {
432432
setIsUnreadNotificationOpen(false);

0 commit comments

Comments
 (0)