From 510eaf11415577eb25dc0caea08512766e5ff6f3 Mon Sep 17 00:00:00 2001 From: Andre Fontana Date: Fri, 27 Sep 2024 15:03:17 -0300 Subject: [PATCH] Adjust contact pushName. Not save when in message.upsert and the pushName is from the instance name --- .../integrations/channel/evolution/evolution.channel.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/integrations/channel/evolution/evolution.channel.service.ts b/src/api/integrations/channel/evolution/evolution.channel.service.ts index 0fda0214..1c61e746 100644 --- a/src/api/integrations/channel/evolution/evolution.channel.service.ts +++ b/src/api/integrations/channel/evolution/evolution.channel.service.ts @@ -164,7 +164,7 @@ export class EvolutionStartupService extends ChannelStartupService { await this.updateContact({ remoteJid: messageRaw.key.remoteJid, - pushName: messageRaw.key.fromMe ? '' : (messageRaw.key.fromMe == null ? '' : messageRaw.pushName), + pushName: messageRaw.key.fromMe ? '' : (messageRaw.key.fromMe == null ? '' : received.pushName), profilePicUrl: received.profilePicUrl, }); }