Skip to content

Commit

Permalink
[Chat] Inline image displayed DLP (#4087)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLai committed Feb 1, 2024
1 parent 95a76f9 commit ea23db6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "InlineImage",
"comment": "Update the policy violation check",
"packageName": "@azure/communication-react",
"email": "9044372+JoshuaLai@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "InlineImage",
"comment": "Update the policy violation check",
"packageName": "@azure/communication-react",
"email": "9044372+JoshuaLai@users.noreply.github.com",
"dependentChangeType": "patch"
}
3 changes: 2 additions & 1 deletion packages/chat-stateful-client/src/convertChatMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export const convertChatMessage = (
policyViolation: !!(
message.sender?.kind === 'microsoftTeamsUser' &&
!!message.editedOn &&
message.content?.message === ''
message.content?.message === '' &&
message.content.attachments?.length === 0
)
};
};

0 comments on commit ea23db6

Please sign in to comment.