From 4ccfce25933d4f5cd1a5ab3f372eea05d2771b53 Mon Sep 17 00:00:00 2001 From: Kushdeep Singh <63536883+meKushdeepSingh@users.noreply.github.com> Date: Wed, 22 Jan 2025 13:26:39 +0530 Subject: [PATCH] SDK-1416: Update and Handle messageType for GIFs as MediaEmbed (#1425) --- .../lib/components/chat/ChatViewBubbleCore/CardRenderer.tsx | 2 +- .../src/lib/components/chat/MessageInput/MessageInput.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/CardRenderer.tsx b/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/CardRenderer.tsx index 3a458c42e..5c8aadaca 100644 --- a/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/CardRenderer.tsx +++ b/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/CardRenderer.tsx @@ -98,7 +98,7 @@ export const CardRenderer = ({ )} {/* Gif Card */} - {chat.messageType === 'GIF' && ( + {(chat.messageType === 'GIF' || chat.messageType === 'MediaEmbed') && ( = ({ }; const sendGIF = async (emojiObject: GIFType) => { - sendPushMessage(emojiObject.url as string, 'GIF'); + sendPushMessage(emojiObject.url as string, 'MediaEmbed'); setGifOpen(false); }; @@ -751,7 +751,7 @@ export const MessageInput: React.FC = ({ ); }; -const TypebarSection = styled(Section) <{ border?: string }>` +const TypebarSection = styled(Section)<{ border?: string }>` // gap: 10px; border: ${(props) => props.border || 'none'}; @media ${device.mobileL} {