Adjust contact pushName. Not save when in message.upsert and the pushName is from the instance name

This commit is contained in:
Andre Fontana
2024-09-27 14:49:58 -03:00
parent 4ca141b4f4
commit ca2387cc70
2 changed files with 3 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ export class EvolutionStartupService extends ChannelStartupService {
await this.updateContact({
remoteJid: messageRaw.key.remoteJid,
pushName: messageRaw.pushName,
pushName: messageRaw.key.fromMe ? '' : (messageRaw.key.fromMe == null ? '' : messageRaw.pushName),
profilePicUrl: received.profilePicUrl,
});
}