1 Commits (fcaafc46006859660bb763100936958b8020347f)

Author SHA1 Message Date
borja 5c1d2f2251 fix: prevent user DMs from being treated as groups in gating
handleGroupDiscovery and handleGroupEnforcement lacked isGroupId()
guards, causing user JIDs (e.g. 1234567890@s.whatsapp.net) to be
incorrectly registered as 'pending' groups in discover mode, and
silently blocked in enforce mode.

Added isGroupId() bail-out at the top of both functions, matching the
existing pattern in ensureGroupActive(). Added 5 regression tests
covering both modes for DMs and preserving correct group behavior.
1 month ago