From 166e1964d8bc10b7edfa218cac9107733925fbf4 Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Thu, 2 Jan 2025 17:56:41 +0530 Subject: [PATCH] fix: show unread indicator when there is unread count for the channel --- package/src/components/MessageList/MessageList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/src/components/MessageList/MessageList.tsx b/package/src/components/MessageList/MessageList.tsx index 96dfb38e3..889b79580 100644 --- a/package/src/components/MessageList/MessageList.tsx +++ b/package/src/components/MessageList/MessageList.tsx @@ -426,7 +426,7 @@ const MessageListWithContext = < return; } - if (unreadIndicatorDate && lastItemDate > unreadIndicatorDate) { + if (channel.countUnread() && unreadIndicatorDate && lastItemDate > unreadIndicatorDate) { setIsUnreadNotificationOpen(true); } else { setIsUnreadNotificationOpen(false);