From 5191438acfcbbd8badade3ca7906ac56510d37e6 Mon Sep 17 00:00:00 2001 From: Willian Coqueiro Date: Fri, 25 Jul 2025 12:02:17 +0000 Subject: [PATCH] fix: update error handling messages and correct group parameter in createContact method --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 2 ++ .../integrations/chatbot/chatwoot/services/chatwoot.service.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index f454473a..2bedac37 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1059,6 +1059,8 @@ export class BaileysStartupService extends ChannelStartupService { 'failed to decrypt message', 'SessionError', 'Invalid PreKey ID', + 'No session record', + 'No session found to decrypt message' ].some((err) => param?.includes?.(err)), ) ) { diff --git a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts index 5561ee6f..badaba13 100644 --- a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts +++ b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts @@ -681,7 +681,7 @@ export class ChatwootService { instance, body.key.participant.split('@')[0], filterInbox.id, - isGroup, + false, body.pushName, picture_url.profilePictureUrl || null, body.key.participant,