Commit Graph

27 Commits

Author SHA1 Message Date
Claude 879970fda8 fix(carousel): remove hasSubtitle proto field + add debug logging
- Remove hasSubtitle (field 10) from Header proto definition, index.js
  and index.d.ts - this field was adding extra bytes to encoded protobuf
  that working implementations don't send, potentially causing rejection
- Remove hasSubtitle from carousel card headers and root header
- Add [CAROUSEL DEBUG] logging in relayMessage to dump:
  - Encoded message bytes as base64 (for binary comparison)
  - Message structure as JSON
  - Per-device encoded bytes with DSM flag
- This enables byte-level comparison with working implementations

https://claude.ai/code/session_01EK9NpViRCtda1WAvFd8ptR
2026-02-06 21:27:40 +00:00
Claude 3ac2c33d93 fix(carousel): hasSubtitle + relayMessage direto + proto atualizado
Implementação completa baseada na análise ponto-a-ponto de 5 diferenças:

1. hasSubtitle adicionado ao proto schema (field 10, bool em Header)
   - Adicionado ao WAProto.proto, index.js (encode/decode/fromObject/toObject)
   - Adicionado ao index.d.ts (IHeader, Header class)
   - Usado no root header e em cada card do carousel

2. relayMessage direto para carousel em sendMessage
   - Detecta nativeCarousel no content e bypassa generateWAMessage inteiro
   - Chama generateWAMessageContent (que usa fromObject) diretamente
   - Depois relayMessage sem passar por generateWAMessageFromContent
   - Elimina: segundo WAProto.Message.create(), contextInfo.expiration, etc.

3. Pipeline final do carousel agora:
   sendMessage → generateWAMessageContent(fromObject) → relayMessage
   Sem: generateWAMessageFromContent, WAProto.Message.create, ephemeral

Commits anteriores já incluem:
- viewOnceMessage wrapper
- fromObject no generateWAMessageContent
- Skip tctoken no stanza

https://claude.ai/code/session_01EK9NpViRCtda1WAvFd8ptR
2026-02-06 21:07:44 +00:00
Rajeh Taher a8b8eceb72 waproto, validate-connection: Update headers and proto to latest version 2025-11-06 23:41:41 +02:00
Rajeh Taher 334977f983 general: revert #1665 2025-10-03 18:14:30 +03:00
João Lucas de Oliveira Lopes 4d4339dae6 feat(WAProto): Optimize protobuf generation for 80%+ bundle size reduction (#1665)
* chore: remove comments and veirfy from generated proto files (improve size)

* refactor: replace fromObject with create for proto message instantiation and flag no beautiful

* chore: lint issues
2025-09-07 14:08:11 +03:00
canove 07014d02c1 chore: update proto 2025-05-21 12:18:08 -03:00
Rajeh Taher 99142aac96 proto: update manually to 2.3000.1020608496 2025-03-06 04:22:17 +02:00
github-actions[bot] acd0321a53 chore: updated proto/version to v2.2403.2 (#288)
Co-authored-by: edgardmessias <edgardmessias@users.noreply.github.com>
2024-01-19 18:00:54 +02:00
github-actions[bot] a84f75ef2a feat: Whatsapp v2.2329.9 proto/version change (#169)
Co-authored-by: edgardmessias <edgardmessias@users.noreply.github.com>
2023-07-18 10:29:48 -03:00
github-actions[bot] 43bd2341b4 chore: updated proto/version to v2.2325.3
Co-authored-by: edgardmessias <edgardmessias@users.noreply.github.com>
2023-06-17 18:18:18 -03:00
github-actions[bot] 63575e9b85 fix: updated proto/version to v2.2323.4 (#96)
Co-authored-by: edgardmessias <edgardmessias@users.noreply.github.com>
2023-06-07 11:22:19 -03:00
github-actions[bot] 3ef279c6b8 chore: updated proto to v2.2320.10 (#68)
Co-authored-by: edgardmessias <edgardmessias@users.noreply.github.com>
2023-05-26 07:20:32 +02:00
Adhiraj Singh bbe9b3c3f5 chore: update proto 2023-03-09 16:10:14 +05:30
Adhiraj Singh 2f7334407f chore: update proto + version 2022-11-13 12:23:11 +05:30
Adhiraj Singh 115073e9e2 chore: update proto 2022-11-06 15:35:29 +05:30
Adhiraj Singh 53e204c786 chore: update proto 2022-10-23 15:28:10 +05:30
Adhiraj Singh 376df2f5dc chore: update proto 2022-10-12 10:35:41 +05:30
Adhiraj Singh d73585ede9 chore: update proto 2022-09-17 15:34:59 +05:30
Adhiraj Singh 2549d10be9 feat: update proto
The new proto extract has a bunch of breaking changes, so if you were using the raw proto in your code somewhere -- then you may have to update your code to make it work with the new proto

!BREAKING_CHANGE
2022-08-01 10:43:04 +05:30
Adhiraj Singh 3df968807d chore: update proto 2022-07-15 07:39:27 +05:30
Adhiraj Singh 8fa500a8a2 chore: update proto
the proto was generated using a different method, hence the diff is larger -- but if the method continues to work, we should get very nice little diffs
2022-06-23 22:14:43 +05:30
Adhiraj Singh d834e1d029 chore: upgrade proto 2022-04-25 23:15:07 +05:30
Adhiraj Singh fae90a5214 chore: update proto 2022-04-14 20:34:07 +05:30
Adhiraj Singh 51a397c27c chore: update proto 2022-03-22 12:59:38 +05:30
Adhiraj Singh e4eaf2d2e4 chore: update proto 2022-02-12 19:48:46 +05:30
Adhiraj Singh 3cfde73718 chore: update proto
Thanks to @tulir for the proto extract script
2021-12-08 14:02:14 +05:30
Adhiraj Singh f267f27ada finalize multi-device 2021-09-22 22:19:53 +05:30