mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -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',
|
'123456',
|
||||||
inboxId,
|
inboxId,
|
||||||
false,
|
false,
|
||||||
|
false,
|
||||||
organization ? organization : 'EvolutionAPI',
|
organization ? organization : 'EvolutionAPI',
|
||||||
logo ? logo : 'https://evolution-api.com/files/evolution-api-favicon.png',
|
logo ? logo : 'https://evolution-api.com/files/evolution-api-favicon.png',
|
||||||
)) as any);
|
)) as any);
|
||||||
@ -291,6 +292,7 @@ export class ChatwootService {
|
|||||||
phoneNumber: string,
|
phoneNumber: string,
|
||||||
inboxId: number,
|
inboxId: number,
|
||||||
isGroup: boolean,
|
isGroup: boolean,
|
||||||
|
isLid: boolean,
|
||||||
name?: string,
|
name?: string,
|
||||||
avatar_url?: string,
|
avatar_url?: string,
|
||||||
jid?: string,
|
jid?: string,
|
||||||
@ -303,7 +305,7 @@ export class ChatwootService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let data: any = {};
|
let data: any = {};
|
||||||
if (!isGroup) {
|
if (!isGroup && !isLid) {
|
||||||
data = {
|
data = {
|
||||||
inbox_id: inboxId,
|
inbox_id: inboxId,
|
||||||
name: name || phoneNumber,
|
name: name || phoneNumber,
|
||||||
@ -675,6 +677,7 @@ export class ChatwootService {
|
|||||||
chatId,
|
chatId,
|
||||||
filterInbox.id,
|
filterInbox.id,
|
||||||
isGroup,
|
isGroup,
|
||||||
|
isLid,
|
||||||
nameContact,
|
nameContact,
|
||||||
picture_url.profilePictureUrl || null,
|
picture_url.profilePictureUrl || null,
|
||||||
jid,
|
jid,
|
||||||
|
Loading…
Reference in New Issue
Block a user