Commit cb4a14d
committed
fix(meta): normalize execution order and fix chatwootIds in Cloud API
Two bugs in BusinessStartupService message processing:
1. Execution order: Chatwoot was processed AFTER the bot emit(), but
Baileys channel processes Chatwoot FIRST. This inconsistency meant
the bot could not access chatwootConversationId/chatwootInboxId
when processing messages from the Cloud API.
2. chatwootIds assignment: chatwootInboxId and chatwootConversationId
were both incorrectly set to chatwootSentMessage.id instead of
.inbox_id and .conversation_id respectively.
Fix: reorder to Chatwoot-first (consistent with Baileys) and use the
correct property names from the Chatwoot response object.1 parent 42b46e0 commit cb4a14d
File tree
1 file changed
+13
-12
lines changed- src/api/integrations/channel/meta
1 file changed
+13
-12
lines changedLines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 671 | + | |
680 | 672 | | |
681 | 673 | | |
682 | 674 | | |
683 | 675 | | |
684 | 676 | | |
685 | 677 | | |
686 | 678 | | |
687 | | - | |
| 679 | + | |
688 | 680 | | |
689 | | - | |
690 | | - | |
| 681 | + | |
| 682 | + | |
691 | 683 | | |
692 | 684 | | |
693 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
| |||
0 commit comments