Commit 8e885b5
committed
fix: skip ack when DisabledFeatures.Signal is set
The library was acking inbound `<message>` envelopes when
DisabledFeatures.Signal was on, on the rationale of "tell the server
to stop retrying." That's wrong: the runner has not actually received
or decrypted the message — only the downstream client (e.g. a Baileys
behind a proxy) has. Acking on its behalf prematurely tells WA the
message was delivered, defeating retry semantics and offline-buffer
flows where the downstream client may not be reachable yet.
With this change, the disabled branch is a true no-op for message
delivery. The ack travels back through the same path the message
went out (e.g. customer's Baileys → Bartender → SendNode on the
runner's whatsmeow → real WA) once the downstream client confirms
processing.
Godoc on DisabledFeatures.Signal updated to match the new behavior.1 parent 534b7c5 commit 8e885b5
2 files changed
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
0 commit comments