Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ A few behaviors that differ from upstream — almost always to your advantage:
`connectTimeoutMs`, `qrTimeout`, `printQRInTerminal`, `ignoreOfflineMessages`,
`downloadHistory`, `agent`, `fetchAgent`, `mobile`, `mediaCache`,
`userDevicesCache`, `callOfferCache` and `placeholderResendCache`.
- **A sender's resend reaches you once, not once per delivery.** When a
sender's network is bad, their client re-runs its own outbox and sends the
same message again — same `key.id`, re-encrypted. Upstream Baileys emits a
`messages.upsert` for each of those deliveries, so an auto-reply bot answers
the same message two or three times; the engine now recognises the repeat and
emits one. It is a short-lived, in-memory window (five minutes), so the one
case still open is a sender whose retry spans a restart of your process. If
your handler has side effects, keying them on `key.id` remains the thing that
makes it safe — that was true before this and is still true for the gap.
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
- **`Boom` ships in the box.** baileyrs exports its own
`@hapi/boom`-compatible `Boom`, so the existing
`(err as Boom).output.statusCode` pattern works unchanged. If your
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"dependencies": {
"@hapi/boom": "^9.1.4",
"@oxidezap/whatsapp-rust-bridge": "0.18.0",
"@oxidezap/whatsapp-rust-bridge": "0.19.0",
"long": "^5.3.2",
"pino": "^10.3.1",
"protobufjs": "^7.6.5"
Expand Down
Loading