File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/api/integrations/channel/whatsapp Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1179,7 +1179,7 @@ export class BaileysStartupService extends ChannelStartupService {
11791179
11801180 const contactRaw : { remoteJid : string ; pushName : string ; profilePicUrl ?: string ; instanceId : string } = {
11811181 remoteJid : received . key . remoteJid ,
1182- pushName : received . key . fromMe ? '' : ( received . key . fromMe == null ? '' : contact . pushName ) ,
1182+ pushName : received . key . fromMe ? '' : ( received . key . fromMe == null ? '' : received . pushName ) ,
11831183 profilePicUrl : ( await this . profilePicture ( received . key . remoteJid ) ) . profilePictureUrl ,
11841184 instanceId : this . instanceId ,
11851185 } ;
@@ -1189,13 +1189,6 @@ export class BaileysStartupService extends ChannelStartupService {
11891189 }
11901190
11911191 if ( contact ) {
1192- const contactRaw : { remoteJid : string ; pushName : string ; profilePicUrl ?: string ; instanceId : string } = {
1193- remoteJid : received . key . remoteJid ,
1194- pushName : received . key . fromMe ? '' : ( received . key . fromMe == null ? '' : contact . pushName ) ,
1195- profilePicUrl : ( await this . profilePicture ( received . key . remoteJid ) ) . profilePictureUrl ,
1196- instanceId : this . instanceId ,
1197- } ;
1198-
11991192 this . sendDataWebhook ( Events . CONTACTS_UPDATE , contactRaw ) ;
12001193
12011194 if ( this . configService . get < Chatwoot > ( 'CHATWOOT' ) . ENABLED && this . localChatwoot ?. enabled ) {
You can’t perform that action at this time.
0 commit comments