Renato Alcara
d08a09c35f
feat: add inbound username support and USync username protocol ( #382 )
...
* feat: add inbound username support and USync username protocol
Aligns with Baileys upstream PR #2480 . WhatsApp is rolling out an
inbound username field that maps to the user's LID. This change is
purely additive — it captures and propagates the new optional field
through types, decoders, USync queries, and group/contact events.
Skipped intentionally to preserve InfiniteAPI's LID/PN customization:
- handleGroupNotification in messages-recv.ts (custom LID->PN flow on
groups.upsert / participants.map). Username for these specific
events still flows via process-message's emitParticipantsUpdate
(reads message.key.participantUsername added in decode-wa-message).
Carousel/buttons code (messages.ts, messages-send.ts) untouched.
Co-Authored-By: Renato Alcara
2026-04-25 12:39:31 -03:00
Claude
2a9d9a0a52
fix: revert remaining ?? '' patterns across Utils, WABinary, Signal, and WAUSync files
...
Completes the comprehensive revert of defensive null coalescing patterns
introduced in PRs 124-129. These patterns (e.g. `value ?? ''`) silently
produced empty strings instead of failing fast, causing subtle bugs like
malformed JIDs and broken Signal session lookups.
Files: libsignal.ts, messages-recv.ts, chat-utils.ts, generics.ts,
history.ts, messages-media.ts, messages.ts, process-message.ts,
validate-connection.ts, jid-utils.ts, UsyncBotProfileProtocol.ts
https://claude.ai/code/session_01XaA7GwNaB6azTHFYQ8WEpB
2026-02-09 13:56:33 +00:00
Claude
7e88ddb858
fix(types): remove non-null assertions across 14 files
...
Files fixed:
- messages-recv.ts: 58 assertions → null guards, meId extraction, optional chaining
- process-message.ts: 38 assertions → remoteJid/participant guards, proto field checks
- chat-utils.ts: 31 assertions → proto field validation with Boom errors
- messages-send.ts: 20 assertions → meId extraction, participant guards
- chats.ts: 15 assertions → me guard, firstChild guard, jid guards
- messages.ts: 14 assertions → originalFilePath guard, key guards
- groups.ts: 12 assertions → attrs fallbacks with ??
- validate-connection.ts: 9 assertions → grouped proto field validation
- generics.ts: 1 assertion → versionLine guard
- history.ts: 2 assertions → key guards
- libsignal.ts: 1 assertion → deviceId guard
- sender-key-message.ts: 3 assertions → proto guards
- UsyncBotProfileProtocol.ts: 2 assertions → attrs guards
- example.ts: 3 assertions → optional chaining
https://claude.ai/code/session_01E2cfX1N3sJgCJBTvzGazSG
2026-02-09 00:05:13 +00:00
Rajeh Taher
42c980778e
send, usync: fix lid Usync (including onWhatsApp), and send phash
2025-09-14 21:35:13 +03:00
Rajeh Taher
787aed88b8
project: Move to ESM Modules
2025-07-17 13:54:17 +03:00
Pedro Dias
691b40a8f7
uSync error for disappear_mode ( #1589 )
...
Fixed the problem that occurred when pushing the disappear_mode.
2025-07-04 17:28:52 -03:00
canove
eb6c6c8ba9
Merge branch 'master' of https://github.com/WhiskeySockets/Baileys into fix-eslint-prettier-editorconfig-rules
2025-05-28 22:42:28 -03:00
canove
fa706d0b50
chore: format everything
2025-05-06 12:10:19 -03:00
Alι Aryαɴ
10751483ef
core: PR health
2025-04-19 02:43:10 +05:00
Alι Aryαɴ
e3078f30c8
fix: content being undefined
2025-04-11 03:32:58 +05:00
Rajeh Taher
642bfd825a
usync: add lid protocol
2025-04-09 20:17:53 +03:00
Rajeh Taher
98ecd2a653
usync, chat: get bot profile info and get bot list
2025-03-19 00:44:53 +02:00
Rajeh Taher
a29138758c
socket, binary, usync: fix linting
2025-03-14 23:38:53 +02:00
Rajeh Taher
f1f49ad2c8
Usync: Barebones Usync Protocol support ( #960 )
...
* feature(feature/usync-mex): initial commit
* chore: fix merge commit
* chore:lint
2024-12-22 23:38:41 +02:00