From 30fa9ec5dbf42d642cac9dd51eb31ae65bbab924 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 11 Jun 2025 12:05:57 -0300 Subject: [PATCH] fix(WhatsappDirectLine): comment out unused header component in message structure --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 75ca6859..e09526cb 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -834,9 +834,11 @@ export class WhatsappDirectLine extends GBService { // Function to create or update a template using WhatsApp Business API public async createOrUpdateTemplate(min: GBMinInstance, template, text) { + template = template.replace('.docx', ''); template = template.replace(/\-/gi, '_'); template = template.replace(/\./gi, '_'); + // Determine if media is image or video let isMedia = text.toLowerCase().endsWith('.jpg') ||