Commit deb408c
fix(baileys): preserve protobuf Long prototypes in patchMessageBeforeSending
Replaces JSON.parse(JSON.stringify(message)) clones with in-place mutation.
The clone destroyed protobuf Long prototypes causing "TypeError: this.isZero
is not a function" when sending lists/buttons in v2.3.6.
Backport of upstream PR EvolutionAPI#2461 (EvolutionAPI#2461).
Unblocks /message/sendList endpoint for our SaaS WhatsApp button workflows.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5b73721 commit deb408c
1 file changed
Lines changed: 3 additions & 4 deletions
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
661 | 664 | | |
662 | 665 | | |
663 | 666 | | |
664 | | - | |
665 | | - | |
666 | 667 | | |
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
670 | | - | |
671 | | - | |
672 | 671 | | |
673 | 672 | | |
674 | 673 | | |
| |||
0 commit comments