mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 07:04:50 -06:00
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.
This commit is contained in:
parent
7cfc359be9
commit
1eb2c848f7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user