Skip to content

Commit bb36bfe

Browse files
Merge pull request #2249 from rodps/fix/fetch-messages-jid
fix: unify remoteJid filtering using OR with remoteJidAlt
2 parents b1d7701 + 302e219 commit bb36bfe

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
@@ -5019,7 +5019,6 @@ export class BaileysStartupService extends ChannelStartupService {
50195019
AND: [
50205020
keyFilters?.id ? { key: { path: ['id'], equals: keyFilters?.id } } : {},
50215021
keyFilters?.fromMe ? { key: { path: ['fromMe'], equals: keyFilters?.fromMe } } : {},
5022-
keyFilters?.remoteJid ? { key: { path: ['remoteJid'], equals: keyFilters?.remoteJid } } : {},
50235022
keyFilters?.participant ? { key: { path: ['participant'], equals: keyFilters?.participant } } : {},
50245023
{
50255024
OR: [
@@ -5049,7 +5048,6 @@ export class BaileysStartupService extends ChannelStartupService {
50495048
AND: [
50505049
keyFilters?.id ? { key: { path: ['id'], equals: keyFilters?.id } } : {},
50515050
keyFilters?.fromMe ? { key: { path: ['fromMe'], equals: keyFilters?.fromMe } } : {},
5052-
keyFilters?.remoteJid ? { key: { path: ['remoteJid'], equals: keyFilters?.remoteJid } } : {},
50535051
keyFilters?.participant ? { key: { path: ['participant'], equals: keyFilters?.participant } } : {},
50545052
{
50555053
OR: [

0 commit comments

Comments
 (0)