We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc751bb commit 84451baCopy full SHA for 84451ba
1 file changed
src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts
@@ -2042,7 +2042,8 @@ export class ChatwootService {
2042
return;
2043
}
2044
2045
- if (adsMessage) {
+ const isAdsMessage = (adsMessage && adsMessage.title) || adsMessage.body || adsMessage.thumbnailUrl;
2046
+ if (isAdsMessage) {
2047
const imgBuffer = await axios.get(adsMessage.thumbnailUrl, { responseType: 'arraybuffer' });
2048
2049
const extension = mime.getExtension(imgBuffer.headers['content-type']);
0 commit comments