Skip to content

Conversation

@wahyuwidgetworks
Copy link

No description provided.

Baileys v6.7.19 includes sender's own devices in senderKeyJids when
sending to LID-addressed groups, causing WhatsApp to reject with
'not-acceptable' error.

This patch filters sender's own devices from the senderKeyJids list
before sending group messages, following the same pattern Baileys
uses for non-group messages (meJids vs otherJids filtering).

Changes:
- Add Baileys patch in patches/baileys+6.7.19+lid-group-send.patch
- Update Dockerfile to apply patch after npm ci
- Extract meUser from meId and meLid from authState.creds
- Skip sender's own devices in senderKeyJids loop

Fixes: #issue-number
Related: WhiskeySockets/Baileys#1690, EvolutionAPI#1768
…tion

Alpine Linux does not include 'patch' by default. Without this,
the Baileys LID group send patch would silently fail during build,
leaving the fix unapplied in production images.

Changes:
- Add 'patch' to apk install list
- Remove '|| echo' fallback to fail fast on patch errors
- Use unified diff format without git headers
- Change from -p1 to -p0 for correct path stripping
- Ensures patch applies correctly during Docker build
@wahyuwidgetworks wahyuwidgetworks merged commit 3b2d233 into production-v2.3.2 Dec 11, 2025
1 check passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 18 to +20
# [WIDGET-WORKS] Apply Baileys patch for LID group send fix
COPY ./patches ./patches
RUN patch -p1 < patches/baileys+6.7.19+lid-group-send.patch
RUN patch -p0 < patches/baileys+6.7.19+lid-group-send.patch

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Patch Docker build with correct strip level

Switching the patch invocation to patch -p0 while the patch file still uses a/node_modules/.../b/... paths means the build step now looks for files under a/node_modules/... and fails before the image is built (the actual files live under node_modules). With -p1 the leading a/ was stripped and the patch applied; with -p0 the patch cannot be applied during docker build, breaking the image.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants