From 5191438acfcbbd8badade3ca7906ac56510d37e6 Mon Sep 17 00:00:00 2001 From: Willian Coqueiro Date: Fri, 25 Jul 2025 12:02:17 +0000 Subject: [PATCH 1/2] 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, From 23f54d1d96771b3cf3f712f28b4c9c71cf03dd34 Mon Sep 17 00:00:00 2001 From: Willian Coqueiro Date: Fri, 25 Jul 2025 12:13:56 +0000 Subject: [PATCH 2/2] lint --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 2 +- 1 file changed, 1 insertion(+), 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 2bedac37..6bdbef15 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1060,7 +1060,7 @@ export class BaileysStartupService extends ChannelStartupService { 'SessionError', 'Invalid PreKey ID', 'No session record', - 'No session found to decrypt message' + 'No session found to decrypt message', ].some((err) => param?.includes?.(err)), ) ) {