fix(send): resolve Brazilian 9th digit by asking WhatsApp for both variants
Accounts created before the 9th digit rollout are still registered without it (554291389691), newer ones with it (5542991389691). The DDD-based rewrite in CreateJID cannot be right for every account, and the existence check queried only the number as received, so sends to 5542991389691 failed for an account registered as 554291389691. validateAndCheckUserExists now queries both forms in one IsOnWhatsApp call and uses the registered one (received form first). Non-Brazilian numbers, groups, LIDs and landlines follow the previous path unchanged. Related: upstream issue #214 / PR #208. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
03d619bb55
commit
5b71495e93
4 files changed
+123
No files matched your search
@@ -22,6 +22,11 @@
|
||||
(pacote inexistente); `ClientPayload_UserAgent_AppVersion` vem de
|
||||
`go.mau.fi/whatsmeow/proto/waWa6`.
|
||||
|
||||
- **Nono dígito (BR)** — envios para celulares brasileiros consultam no
|
||||
WhatsApp as duas variantes (com e sem o 9) e usam a que está registrada.
|
||||
Contas antigas sem o 9 (ex.: `554291389691`) passam a receber mesmo quando o
|
||||
sistema envia `5542991389691`, e vice-versa (upstream issue #214 / PR #208).
|
||||
|
||||
### 🛡️ Estabilidade (correções da comunidade incorporadas pelo EvoGO)
|
||||
- **Crash `concurrent map writes`** — `clientPointer`, `myClientPointer` e
|
||||
`killChannel` agora são `safemap.Map` com RWMutex (upstream PR #196, issue #203).
|
||||
|
||||
Reference in new issue
Block a user