Skip to content

Commit

Permalink
SDK-1416: Update and Handle messageType for GIFs as MediaEmbed (#1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
meKushdeepSingh authored Jan 22, 2025
1 parent b82b647 commit 4ccfce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const CardRenderer = ({
)}

{/* Gif Card */}
{chat.messageType === 'GIF' && (
{(chat.messageType === 'GIF' || chat.messageType === 'MediaEmbed') && (
<GIFCard
chat={chat}
background={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export const MessageInput: React.FC<MessageInputProps> = ({
};

const sendGIF = async (emojiObject: GIFType) => {
sendPushMessage(emojiObject.url as string, 'GIF');
sendPushMessage(emojiObject.url as string, 'MediaEmbed');
setGifOpen(false);
};

Expand Down Expand Up @@ -751,7 +751,7 @@ export const MessageInput: React.FC<MessageInputProps> = ({
);
};

const TypebarSection = styled(Section) <{ border?: string }>`
const TypebarSection = styled(Section)<{ border?: string }>`
// gap: 10px;
border: ${(props) => props.border || 'none'};
@media ${device.mobileL} {
Expand Down

0 comments on commit 4ccfce2

Please sign in to comment.