Skip to content

Commit

Permalink
fix: new messages in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Barresi committed Feb 12, 2024
1 parent 1bed800 commit cac68ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/chat/ui/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Chat: FC = () => {
const isMyMessage = senderId === user?.id
return (
<>
{!read && renderNewMessagesBlock()}
{!read && senderId !== user?.id && renderNewMessagesBlock()}
<Message
text={text}
date={createdAt}
Expand Down

0 comments on commit cac68ad

Please sign in to comment.