You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 740f54e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(whatsapp): retain unmatched attachments across captioned replacement (#131672)
* fix(whatsapp): retain unmatched attachments across captioned replacement
Track WhatsApp acceptance per media URL so captioned replacements supersede only delivered attachments. Keep unmatched media under the original deferred finalization, preserve hook vetoes and partial-send errors, and share one ordered media-send branch.
* test(whatsapp): verify attachment remainders through core settlement
Move overlap regressions to the canonical message_sent boundary and assert retained provider receipts, finalization visibility, and duplicate-free observer outcomes.
Copy file name to clipboardExpand all lines: docs/channels/whatsapp.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -410,6 +410,7 @@ When the linked self number is also present in `allowFrom`, self-chat safeguards
410
410
- `gifPlayback: true` on video sends enables animated GIF playback
411
411
- `forceDocument`/`asDocument` routes outbound images, GIFs, and videos through the Baileys document payload to avoid WhatsApp's media compression, preserving the resolved filename and MIME type
412
412
- captions apply to the first media item in a multi-media reply, except PTT voice notes: the audio sends first with no caption, then the caption sends as a separate text message (WhatsApp clients do not render voice-note captions consistently)
413
+
- when a later captioned reply repeats pending attachments, only attachments accepted by WhatsApp replace their pending copies; unmatched attachments remain queued for delivery
413
414
- media source can be HTTP(S), `file://`, or a local path
0 commit comments