diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 09e68bb7..477d85b8 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1078,7 +1078,7 @@ export class BaileysStartupService extends ChannelStartupService { const editedMessage = received?.message?.protocolMessage || received?.message?.editedMessage?.message?.protocolMessage; - if (received.message?.protocolMessage?.editedMessage && editedMessage) { + if (editedMessage) { if (this.configService.get('CHATWOOT').ENABLED && this.localChatwoot?.enabled) this.chatwootService.eventWhatsapp( 'messages.edit', @@ -1126,7 +1126,7 @@ export class BaileysStartupService extends ChannelStartupService { if ( (type !== 'notify' && type !== 'append') || - received.message?.protocolMessage || + editedMessage || received.message?.pollUpdateMessage || !received?.message ) {