Merge pull request #2249 from rodps/fix/fetch-messages-jid

fix: unify remoteJid filtering using OR with remoteJidAlt
This commit is contained in:
Davidson Gomes 2025-12-05 10:55:50 -03:00 committed by GitHub
commit bb36bfe424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5019,7 +5019,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: [
@ -5049,7 +5048,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: [