Skip to content

Commit

Permalink
fix: receive messages on chatwoot
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Oct 18, 2024
1 parent bc751bb commit 84451ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,8 @@ export class ChatwootService {
return;
}

if (adsMessage) {
const isAdsMessage = (adsMessage && adsMessage.title) || adsMessage.body || adsMessage.thumbnailUrl;
if (isAdsMessage) {
const imgBuffer = await axios.get(adsMessage.thumbnailUrl, { responseType: 'arraybuffer' });

const extension = mime.getExtension(imgBuffer.headers['content-type']);
Expand Down

0 comments on commit 84451ba

Please sign in to comment.