fix: não injetar biz node para productList do catálogo

Mensagens de lista de produtos do catálogo WhatsApp Business (PRODUCT_LIST)
não precisam de injeção de biz node. O biz node estava causando erro 405.

- Retorna undefined em vez de 'native_flow' para PRODUCT_LIST
- Afeta apenas productList, não afeta carrossel de mídia

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Renato Alcara
2026-01-27 19:36:26 -03:00
parent 87fcc247be
commit df924dae40
+4 -2
View File
@@ -627,8 +627,9 @@ export const makeMessagesSocket = (config: SocketConfig) => {
return 'template'
} else if (message.listMessage) {
// Check if it's a product list (uses PRODUCT_LIST type)
// Product lists from WhatsApp Business catalog don't need biz node injection
if (message.listMessage.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST) {
return 'native_flow'
return undefined // No biz node needed for catalog product lists
}
return 'list'
} else if (message.buttonsResponseMessage) {
@@ -672,8 +673,9 @@ export const makeMessagesSocket = (config: SocketConfig) => {
} else if (innerMessage.templateMessage) {
return 'template'
} else if (innerMessage.listMessage) {
// Product lists from WhatsApp Business catalog don't need biz node injection
if (innerMessage.listMessage.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST) {
return 'native_flow'
return undefined // No biz node needed for catalog product lists
}
return 'list'
} else if (innerMessage.buttonsResponseMessage) {