|
|
|
@ -185,20 +185,20 @@ export const whatsappMsgTypeMapped = {
|
|
|
|
|
data: (msg) => ({
|
|
|
|
|
id: msg.wamid,
|
|
|
|
|
text: msg.image.caption,
|
|
|
|
|
data: { id: msg.wamid, uri: msg.image.link, width: 200, height: 200, alt: msg.image.caption, },
|
|
|
|
|
data: { id: msg.wamid, uri: msg.image.link, width: '100%', height: 200, alt: msg.image.caption, },
|
|
|
|
|
onOpen: () => {
|
|
|
|
|
console.log('Open image', msg.image.link);
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
renderForReply: (msg) => ({
|
|
|
|
|
id: msg.wamid, photoURL: msg.image.link, width: 200, height: 200, alt: '',
|
|
|
|
|
id: msg.wamid, photoURL: msg.image.link, width: '100%', height: 200, alt: '',
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
sticker: {
|
|
|
|
|
type: 'photo',
|
|
|
|
|
data: (msg) => ({
|
|
|
|
|
id: msg.wamid,
|
|
|
|
|
data: { id: msg.wamid, uri: msg.sticker.link, width: 150, height: 120, alt: '' },
|
|
|
|
|
data: { id: msg.wamid, uri: msg.sticker.link, width: '100%', height: 120, alt: '' },
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
video: {
|
|
|
|
|