Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(engine): record the fifth whatsapp-web.js patch that was rejected

Yudhi Armyndharis629ad06db47a
diff --git a/docs/29-engine-capability-matrix.md b/docs/29-engine-capability-matrix.md
index a03bf1100..855bc0db5 100644
--- a/docs/29-engine-capability-matrix.md
+++ b/docs/29-engine-capability-matrix.md
@@ -158,6 +158,30 @@ Rows that are βœ… on **both** engines where one side is patch-dependent: `initia
rests on the column-wide πŸ”§ΒΉ (wwjs) and πŸ”§β΅ (baileys) β€” no row runs on stock library code on both
sides.
+### 29.3.3 A fifth whatsapp-web.js patch was considered and rejected
+
+`Client.transferChannelOwnership` swallows WhatsApp's own refusal reason β€”
+`contact-not-found-in-newsletter-subscriber-list` β€” into a bare `false`, so the caller gets a 403
+with no cause. A patch to surface it looks obviously worthwhile, and it is not. Recorded here with
+the counts that rejected it, because the case is attractive enough to be proposed again.
+
+Parsing every `async` method in `Client.js` for a catch that returns `false` finds **five**, all in
+the channel cluster. Four of them β€” `acceptChannelAdminInvite`, `revokeChannelAdminInvite`,
+`demoteChannelAdmin`, `deleteChannel` β€” catch **only** `ServerStatusCodeError` and rethrow everything
+else, which is the behaviour we would want and the same shape as `deleteProfilePicture`. The
+indiscriminate `catch (ignoredError) { return false; }` appears **once**, in
+`transferChannelOwnership` (`Client.js:2627`).
+
+So it is not a house style, and the one method carrying it is the one OpenWA answers 501 for and
+never invokes (29.6.2). The patch would repair a path our code does not take. It is also not an
+upstream oversight but a deliberate design choice β€” a boolean return means discarding the cause β€” so
+unlike πŸ”§βΆ there is no upstream fix that would ever retire it.
+
+One real defect did fall out of that count and is **not** patch-shaped: `deleteChannel`'s page body
+opens `if (!channel) return false;` before its try, so its `false` conflates _channel not found_ with
+_WhatsApp refused_, and the adapter answers 403 for both. That distinction is ours to make in our own
+adapter and involves no library change.
+
## 29.4 Full capability matrix β€” the OpenWA contract view (112 methods)
Legend recap: **βœ…** supported Β· **βœ…πŸ”§βΏ** supported via OpenWA patch `πŸ”§βΏ` (29.3) Β·