diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 22839fd451..50dc44bdcc 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -4346,7 +4346,10 @@ export class BaileysStartupService extends ChannelStartupService { } } - if ('messageContextInfo' in msg.message && Object.keys(msg.message).length === 1) { + if ( + Object.keys(msg.message).length === 1 && + Object.prototype.hasOwnProperty.call(msg.message, 'messageContextInfo') + ) { this.logger.verbose('Message contains only messageContextInfo, skipping media processing'); return null; }