fix(chatwoot): fix when receiving/sending messages from whatsapp desktop with ephemeral messages enabled

This commit is contained in:
jaison-x 2024-03-26 15:42:32 -03:00
parent 589dec52a3
commit 3e85af9589

View File

@ -1774,6 +1774,13 @@ export class ChatwootService {
return;
}
// fix when receiving/sending messages from whatsapp desktop with ephemeral messages enabled
if (body.message?.ephemeralMessage?.message) {
body.message = {
...body.message?.ephemeralMessage?.message,
};
}
this.logger.verbose('get conversation message');
// Whatsapp to Chatwoot