From 302e219f7f7b359096c0c3fd4cfc4b088a843023 Mon Sep 17 00:00:00 2001 From: Rodrigo da Silva Date: Sun, 23 Nov 2025 18:46:06 -0300 Subject: [PATCH] fix: unify remoteJid filtering using OR with remoteJidAlt --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index c8734201..198e9fb0 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -4882,7 +4882,6 @@ export class BaileysStartupService extends ChannelStartupService { AND: [ keyFilters?.id ? { key: { path: ['id'], equals: keyFilters?.id } } : {}, keyFilters?.fromMe ? { key: { path: ['fromMe'], equals: keyFilters?.fromMe } } : {}, - keyFilters?.remoteJid ? { key: { path: ['remoteJid'], equals: keyFilters?.remoteJid } } : {}, keyFilters?.participant ? { key: { path: ['participant'], equals: keyFilters?.participant } } : {}, { OR: [ @@ -4912,7 +4911,6 @@ export class BaileysStartupService extends ChannelStartupService { AND: [ keyFilters?.id ? { key: { path: ['id'], equals: keyFilters?.id } } : {}, keyFilters?.fromMe ? { key: { path: ['fromMe'], equals: keyFilters?.fromMe } } : {}, - keyFilters?.remoteJid ? { key: { path: ['remoteJid'], equals: keyFilters?.remoteJid } } : {}, keyFilters?.participant ? { key: { path: ['participant'], equals: keyFilters?.participant } } : {}, { OR: [