Skip to content

Commit 302e219

Browse files
committed
fix: unify remoteJid filtering using OR with remoteJidAlt
1 parent 689f347 commit 302e219

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4882,7 +4882,6 @@ export class BaileysStartupService extends ChannelStartupService {
48824882
AND: [
48834883
keyFilters?.id ? { key: { path: ['id'], equals: keyFilters?.id } } : {},
48844884
keyFilters?.fromMe ? { key: { path: ['fromMe'], equals: keyFilters?.fromMe } } : {},
4885-
keyFilters?.remoteJid ? { key: { path: ['remoteJid'], equals: keyFilters?.remoteJid } } : {},
48864885
keyFilters?.participant ? { key: { path: ['participant'], equals: keyFilters?.participant } } : {},
48874886
{
48884887
OR: [
@@ -4912,7 +4911,6 @@ export class BaileysStartupService extends ChannelStartupService {
49124911
AND: [
49134912
keyFilters?.id ? { key: { path: ['id'], equals: keyFilters?.id } } : {},
49144913
keyFilters?.fromMe ? { key: { path: ['fromMe'], equals: keyFilters?.fromMe } } : {},
4915-
keyFilters?.remoteJid ? { key: { path: ['remoteJid'], equals: keyFilters?.remoteJid } } : {},
49164914
keyFilters?.participant ? { key: { path: ['participant'], equals: keyFilters?.participant } } : {},
49174915
{
49184916
OR: [

0 commit comments

Comments
 (0)