Skip to content

Commit 1eb2c84

Browse files
committed
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.
1 parent 7cfc359 commit 1eb2c84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export class ChatwootService {
232232
'123456',
233233
inboxId,
234234
false,
235+
false,
235236
organization ? organization : 'EvolutionAPI',
236237
logo ? logo : 'https://evolution-api.com/files/evolution-api-favicon.png',
237238
)) as any);
@@ -291,6 +292,7 @@ export class ChatwootService {
291292
phoneNumber: string,
292293
inboxId: number,
293294
isGroup: boolean,
295+
isLid: boolean,
294296
name?: string,
295297
avatar_url?: string,
296298
jid?: string,
@@ -303,7 +305,7 @@ export class ChatwootService {
303305
}
304306

305307
let data: any = {};
306-
if (!isGroup) {
308+
if (!isGroup && !isLid) {
307309
data = {
308310
inbox_id: inboxId,
309311
name: name || phoneNumber,
@@ -675,6 +677,7 @@ export class ChatwootService {
675677
chatId,
676678
filterInbox.id,
677679
isGroup,
680+
isLid,
678681
nameContact,
679682
picture_url.profilePictureUrl || null,
680683
jid,

0 commit comments

Comments
 (0)