mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-02-05 14:56:29 -06:00
fix: added delay in chatwoot receive webhook
This commit is contained in:
@@ -460,7 +460,9 @@ export class ChatwootService {
|
|||||||
let contact: any;
|
let contact: any;
|
||||||
if (body.key.fromMe) {
|
if (body.key.fromMe) {
|
||||||
if (findContact) {
|
if (findContact) {
|
||||||
contact = findContact;
|
contact = await this.updateContact(instance, findContact.id, {
|
||||||
|
avatar_url: picture_url.profilePictureUrl || null,
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
const jid = isGroup ? null : body.key.remoteJid;
|
const jid = isGroup ? null : body.key.remoteJid;
|
||||||
contact = await this.createContact(
|
contact = await this.createContact(
|
||||||
@@ -481,7 +483,9 @@ export class ChatwootService {
|
|||||||
avatar_url: picture_url.profilePictureUrl || null,
|
avatar_url: picture_url.profilePictureUrl || null,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
contact = findContact;
|
contact = await this.updateContact(instance, findContact.id, {
|
||||||
|
avatar_url: picture_url.profilePictureUrl || null,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const jid = isGroup ? null : body.key.remoteJid;
|
const jid = isGroup ? null : body.key.remoteJid;
|
||||||
|
|||||||
Reference in New Issue
Block a user