Skip to content

Commit 6648036

Browse files
[Chat] New message button fix (#3930)
1 parent c5245d9 commit 6648036

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Chat",
5+
"comment": "Fix for an issue when a new messages button was shown because the status didn't match for the same message",
6+
"packageName": "@azure/communication-react",
7+
"email": "98852890+vhuseinova-msft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Chat",
5+
"comment": "Fix for an issue when a new messages button was shown because the status didn't match for the same message",
6+
"packageName": "@azure/communication-react",
7+
"email": "98852890+vhuseinova-msft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/MessageThread.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const isMessageSame = (first: ChatMessage, second: ChatMessage): boolean => {
5757
JSON.stringify(first.createdOn) === JSON.stringify(second.createdOn) &&
5858
first.senderId === second.senderId &&
5959
first.senderDisplayName === second.senderDisplayName &&
60-
first.status === second.status
60+
JSON.stringify(first.editedOn) === JSON.stringify(second.editedOn)
6161
);
6262
};
6363

0 commit comments

Comments
 (0)