diff --git a/change-beta/@azure-communication-react-a5d63b54-7238-4b61-884a-11f883946efb.json b/change-beta/@azure-communication-react-a5d63b54-7238-4b61-884a-11f883946efb.json new file mode 100644 index 00000000000..584f8c48801 --- /dev/null +++ b/change-beta/@azure-communication-react-a5d63b54-7238-4b61-884a-11f883946efb.json @@ -0,0 +1,9 @@ +{ + "type": "patch", + "area": "fix", + "workstream": "Chat", + "comment": "Fix for an issue when a new messages button was shown because the status didn't match for the same message", + "packageName": "@azure/communication-react", + "email": "98852890+vhuseinova-msft@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@azure-communication-react-a5d63b54-7238-4b61-884a-11f883946efb.json b/change/@azure-communication-react-a5d63b54-7238-4b61-884a-11f883946efb.json new file mode 100644 index 00000000000..584f8c48801 --- /dev/null +++ b/change/@azure-communication-react-a5d63b54-7238-4b61-884a-11f883946efb.json @@ -0,0 +1,9 @@ +{ + "type": "patch", + "area": "fix", + "workstream": "Chat", + "comment": "Fix for an issue when a new messages button was shown because the status didn't match for the same message", + "packageName": "@azure/communication-react", + "email": "98852890+vhuseinova-msft@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/src/components/MessageThread.tsx b/packages/react-components/src/components/MessageThread.tsx index 53fb46d5fb2..7b9a3e457d7 100644 --- a/packages/react-components/src/components/MessageThread.tsx +++ b/packages/react-components/src/components/MessageThread.tsx @@ -57,7 +57,7 @@ const isMessageSame = (first: ChatMessage, second: ChatMessage): boolean => { JSON.stringify(first.createdOn) === JSON.stringify(second.createdOn) && first.senderId === second.senderId && first.senderDisplayName === second.senderDisplayName && - first.status === second.status + JSON.stringify(first.editedOn) === JSON.stringify(second.editedOn) ); };