mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 09:28:39 -06:00
fix: added delay in chatwoot receive webhook
This commit is contained in:
parent
2791f88b4c
commit
384e311c7a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user