Commit 3f567db
authored
fix(baileys): correct JID filter in markMessageAsRead for all user types (#2418)
The condition used isPnUser() which only matches @pn.whatsapp.net JIDs,
silently excluding normal users (@s.whatsapp.net) and LID users (@lid).
Messages were never actually marked as read for these JID types.
Replace allowlist approach (isJidGroup || isPnUser) with denylist
(!isJidBroadcast && !isJidNewsletter) to correctly include all valid
user and group JIDs while excluding only broadcast and newsletter JIDs.
Fixes #22771 parent 555fa66 commit 3f567db
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4152 | 4152 | | |
4153 | 4153 | | |
4154 | 4154 | | |
4155 | | - | |
| 4155 | + | |
4156 | 4156 | | |
4157 | 4157 | | |
4158 | 4158 | | |
| |||
0 commit comments