fix: v4 ui issues (#10652)

This PR has the following fixes

1. Remove leading `:` in inbox view push message content
2. Styles for block quotes in text
3. Better condition for checking bot message
4. Use dompurify
This commit is contained in:
Shivam Mishra
2025-01-08 18:17:50 +05:30
committed by GitHub
parent dd595675bc
commit 25258417de
4 changed files with 8 additions and 3 deletions

View File

@@ -152,7 +152,8 @@ const variant = computed(() => {
if (props.contentAttributes?.isUnsupported)
return MESSAGE_VARIANTS.UNSUPPORTED;
if (!props.sender || props.sender.type === SENDER_TYPES.AGENT_BOT) {
const isBot = !props.sender || props.sender.type === SENDER_TYPES.AGENT_BOT;
if (isBot && props.messageType === MESSAGE_TYPES.OUTGOING) {
return MESSAGE_VARIANTS.BOT;
}