From dba5379d5e84487c7dc66bc7f2270863e1410779 Mon Sep 17 00:00:00 2001 From: Gabriel Jablonski Date: Tue, 7 Apr 2026 20:13:29 -0300 Subject: [PATCH] fix(whatsapp): include baileys and z-api in multi-attachment split (#256) The ReplyBox multi-attachment split only covered Twilio, Cloud, and 360Dialog providers. Baileys and Z-API were added later and were missing from the check, causing extra attachments to be silently dropped. Use the generic isAWhatsAppChannel flag instead. --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 79e55d8be..c69991aac 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -899,10 +899,7 @@ export default { } if (!this.showMentions) { const copilotAcceptedMessage = this.getCopilotAcceptedMessage(); - const isOnWhatsApp = - this.isATwilioWhatsAppChannel || - this.isAWhatsAppCloudChannel || - this.is360DialogWhatsAppChannel; + const isOnWhatsApp = this.isAWhatsAppChannel; // Instagram and TikTok do not support sending text and attachments in the same message. // For Instagram, combining them causes duplicate messages due to separate echo events per component. // For TikTok, the API rejects messages that mix text and media.