Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN npm ci --silent

# [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
Comment on lines 18 to +20

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 👍 / 👎.


COPY ./src ./src
COPY ./public ./public
Expand Down
4 changes: 1 addition & 3 deletions patches/baileys+6.7.19+lid-group-send.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
diff --git a/node_modules/baileys/lib/Socket/messages-send.js b/node_modules/baileys/lib/Socket/messages-send.js
index 1234567..abcdefg 100644
--- a/node_modules/baileys/lib/Socket/messages-send.js
+++ b/node_modules/baileys/lib/Socket/messages-send.js
@@ -360,8 +360,14 @@ export const makeMessagesSocket = (config) => {
@@ -360,8 +360,14 @@
meId
});
const senderKeyJids = [];
Expand Down