From 123d5f75c87334f8d0101affb5572df04e3c5ae6 Mon Sep 17 00:00:00 2001 From: Yashraj Singh Date: Tue, 9 Apr 2024 11:08:37 +0530 Subject: [PATCH] Fixed_NewMessages_notification (#545) --- packages/react/src/components/ChatBody/ChatBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/ChatBody/ChatBody.js b/packages/react/src/components/ChatBody/ChatBody.js index 47b5b7690..94ea86199 100644 --- a/packages/react/src/components/ChatBody/ChatBody.js +++ b/packages/react/src/components/ChatBody/ChatBody.js @@ -112,7 +112,7 @@ const ChatBody = ({ (message) => { if (message.u.username !== username) { const isScrolledUp = messageListRef?.current?.scrollTop !== 0; - if (isScrolledUp) { + if (isScrolledUp && !('pinned' in message) && !('starred' in message)) { setOtherUserMessage(true); } }