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.
This commit is contained in:
Gabriel Jablonski 2026-04-07 20:13:29 -03:00 committed by GitHub
parent 94c0827e50
commit dba5379d5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.