Update src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
ricaelchiquetti 2025-08-15 17:19:08 -03:00 committed by GitHub
parent ceb946c3dd
commit 5013e510da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4050,7 +4050,7 @@ export class BaileysStartupService extends ChannelStartupService {
const authState = this.instance.authState as any;
if (authState.store && authState.store.contacts) {
// Atualizar contatos no store local
const contacts = authState.store.contacts;
const {contacts} = authState.store;
if (contacts[lidJid]) {
contacts[realJid] = contacts[lidJid];
delete contacts[lidJid];