From 1eb2c848f7d54b0e9965b414198c4b9cdf8b4ff3 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Thu, 12 Jun 2025 12:02:38 -0300 Subject: [PATCH] fix(chatwoot.service): add isLid parameter to service methods for enhanced functionality - Introduced a new boolean parameter `isLid` in relevant methods to improve the handling of conversation data. - Updated conditionals to incorporate `isLid` for more precise data management. - Ensured backward compatibility by maintaining existing functionality while enhancing the service's capabilities. --- .../chatbot/chatwoot/services/chatwoot.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts index 7dbba743..cafa14cb 100644 --- a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts +++ b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts @@ -232,6 +232,7 @@ export class ChatwootService { '123456', inboxId, false, + false, organization ? organization : 'EvolutionAPI', logo ? logo : 'https://evolution-api.com/files/evolution-api-favicon.png', )) as any); @@ -291,6 +292,7 @@ export class ChatwootService { phoneNumber: string, inboxId: number, isGroup: boolean, + isLid: boolean, name?: string, avatar_url?: string, jid?: string, @@ -303,7 +305,7 @@ export class ChatwootService { } let data: any = {}; - if (!isGroup) { + if (!isGroup && !isLid) { data = { inbox_id: inboxId, name: name || phoneNumber, @@ -675,6 +677,7 @@ export class ChatwootService { chatId, filterInbox.id, isGroup, + isLid, nameContact, picture_url.profilePictureUrl || null, jid,