Skip to content

Commit

Permalink
v4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitninawe-cometchat committed Jun 4, 2024
1 parent 9f07887 commit 8bdb2c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cometchat/chat-uikit-react-native",
"version": "4.2.0",
"version": "4.2.1",
"description": "CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly",
"main": "src/index",
"module": "src/index",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ export const CometChatStickerKeyboard = (props: CometChatStickerKeyboardInterfac

const theme = new CometChatTheme(props?.theme || {});
const sendStickerMessage = (stickerItem) => {
props?.onPress(stickerItem);
if(stickerItem && typeof stickerItem === 'object')
props?.onPress({
...stickerItem,
sticker_url: stickerItem?.stickerUrl,
sticker_name: stickerItem?.stickerSetName
});
};

const onStickerSetClicked = (sectionItem) => {
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/Stickers/StickersExtensionDecorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class StickersExtensionDecorator extends DataSourceDecorator {
}

getStickerBubble(message: CometChat.CustomMessage, alignment: MessageBubbleAlignmentType) {
let url = message?.['data']?.['customData']?.['stickerUrl'];
let url = message?.['data']?.['customData']?.['sticker_url'];
return <CometChatStickerBubble
url={url}
name=""
Expand Down

0 comments on commit 8bdb2c4

Please sign in to comment.