Skip to content

Commit f375f31

Browse files
possebonclaude
andcommitted
fix(baileys): correct JID filter in markMessageAsRead (EvolutionAPI#2418)
Changes filter from isJidGroup || isPnUser to !isJidBroadcast && !isJidNewsletter, allowing marking messages as read for all user types including PN users. Upstream PR: EvolutionAPI#2418 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 75acac4 commit f375f31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3677,7 +3677,7 @@ export class BaileysStartupService extends ChannelStartupService {
36773677
try {
36783678
const keys: proto.IMessageKey[] = [];
36793679
data.readMessages.forEach((read) => {
3680-
if (isJidGroup(read.remoteJid) || isPnUser(read.remoteJid)) {
3680+
if (!isJidBroadcast(read.remoteJid) && !isJidNewsletter(read.remoteJid)) {
36813681
keys.push({ remoteJid: read.remoteJid, fromMe: read.fromMe, id: read.id });
36823682
}
36833683
});

0 commit comments

Comments
 (0)