We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2791f88 commit 384e311Copy full SHA for 384e311
1 file changed
src/whatsapp/services/chatwoot.service.ts
@@ -460,7 +460,9 @@ export class ChatwootService {
460
let contact: any;
461
if (body.key.fromMe) {
462
if (findContact) {
463
- contact = findContact;
+ contact = await this.updateContact(instance, findContact.id, {
464
+ avatar_url: picture_url.profilePictureUrl || null,
465
+ });
466
} else {
467
const jid = isGroup ? null : body.key.remoteJid;
468
contact = await this.createContact(
@@ -481,7 +483,9 @@ export class ChatwootService {
481
483
avatar_url: picture_url.profilePictureUrl || null,
482
484
});
485
486
487
488
489
}
490
491
0 commit comments