Skip to content

Commit

Permalink
Fixed_NewMessages_notification (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashraj7890 authored Apr 9, 2024
1 parent 427f6ff commit 123d5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/ChatBody/ChatBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 123d5f7

Please sign in to comment.