Integrations that store the contact's LID as its number (255284433936406)
failed with 'no LID found for [email protected]'. When the number
is not a registered phone and the instance's LID store maps it to a phone
number, send to <number>@lid instead.
GET /server/ok now also returns the running version, so a deployment can be
checked without reading the startup log.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A transient timeout on the registry token endpoint failed the publication of
v0.7.2-evogo.2 (run 482) after the image had already been built and scanned.
Login, pull and push now retry up to 5 times with linear backoff.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
- scripts/upstream-sync.sh + upstream-sync-check.yml: fast-forward upstream-sync,
merge upstream into maintenance/sync-upstream-<sha> from maintained-develop,
build/vet/test, open PR (or Issue on conflict), warn on newer whatsmeow.
Optional AUTO_MERGE_UPSTREAM repo variable; maintained-stable never touched.
- docker-build.yml: publish git.jf.eng.br/jfeng/evogo:<version> and
<version>-<sha7> on tag v*, startup smoke test, non-blocking Trivy scan,
:latest only on explicit promote_latest.
- CHANGELOG and maintenance docs updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
maintained-develop (after PR #1) did not compile: whatsmeow.go referenced an
undefined waProto package. The AppVersion type lives in
go.mau.fi/whatsmeow/proto/waWa6. Also gofmt the file.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Skip a second StartClient while one is starting (adapted from upstream PR #239).
- Do not restart a client without a paired device; it would cycle QR codes
forever (adapted from upstream PR #240).
- Serialize ReconnectClient per instance and nil-check the client: two
Disconnected events in the same second dereferenced a removed client and
killed the whole process (upstream issue #188).
- safemap.TrySend / TrySendTimeout: kill-channel sends no longer panic with
"send on closed channel" when the instance is deleted during QR handling
(upstream issue #222).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adapted from upstream PR #187 (guipratiko). Clearing instance.Events left the
instance with an empty events string after reconnecting, so CallWebhook dropped
every webhook.
Also send kill signals through safemap.TrySend/TrySendTimeout so a channel
closed by a concurrent instance delete no longer panics the process
(upstream issue #222).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adapted from upstream PR #224 (danie1net0). Queries addressed to
"+<number>@s.whatsapp.net" are never answered by WhatsApp and hang until
the IQ timeout (upstream issue #223: /user/info and /user/avatar hang 75s).
Co-Authored-By: Claude Opus 5.5 <[email protected]>