Commit a15d401
committed
fix(baileys): resolve type compatibility issues with updated library
Fixes TypeScript compilation errors caused by updated Baileys library types:
- Cast IWebMessageInfo[] to WAMessage[] in message processor
- Extract participant IDs from GroupParticipant[] objects in group-participants.update event
- Add type cast for quoted message assignment
The chatwoot-br Baileys fork updated event structures, particularly
changing participants from string[] to GroupParticipant[] objects.1 parent 93a3fb2 commit a15d401
2 files changed
Lines changed: 10 additions & 4 deletions
File tree
- src/api/integrations/channel/whatsapp
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1788 | 1788 | | |
1789 | 1789 | | |
1790 | 1790 | | |
1791 | | - | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
1792 | 1798 | | |
1793 | 1799 | | |
1794 | 1800 | | |
| |||
2154 | 2160 | | |
2155 | 2161 | | |
2156 | 2162 | | |
2157 | | - | |
| 2163 | + | |
2158 | 2164 | | |
2159 | 2165 | | |
2160 | 2166 | | |
| |||
0 commit comments