refactor: Simplify conditional check for contact updates in ChatwootService
Some checks failed
Build Docker image / Build and Deploy (push) Has been cancelled

This commit is contained in:
Davidson Gomes 2025-07-14 14:45:01 -03:00
parent 196617507e
commit e321609b93

View File

@ -575,10 +575,7 @@ export class ChatwootService {
try {
// Processa atualização de contatos já criados @lid
if (
isLid &&
body.key.senderPn !== body.key.previousRemoteJid
) {
if (isLid && body.key.senderPn !== body.key.previousRemoteJid) {
const contact = await this.findContact(instance, body.key.remoteJid.split('@')[0]);
if (contact && contact.identifier !== body.key.senderPn) {
this.logger.verbose(