fix(carousel): re-habilitar biz node para carrossel
fix(carousel): re-habilitar biz node para carrossel
This commit is contained in:
@@ -1225,7 +1225,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
|
|
||||||
// EXPERIMENTAL: Try biz node injection for ALL interactive messages including catalog
|
// EXPERIMENTAL: Try biz node injection for ALL interactive messages including catalog
|
||||||
// Previously we skipped catalog messages but they weren't rendering properly
|
// Previously we skipped catalog messages but they weren't rendering properly
|
||||||
if (buttonType && enableInteractiveMessages && !isCarousel) {
|
if (buttonType && enableInteractiveMessages) {
|
||||||
const startTime = Date.now()
|
const startTime = Date.now()
|
||||||
|
|
||||||
// Debug: Log message structure to diagnose list detection
|
// Debug: Log message structure to diagnose list detection
|
||||||
@@ -1384,12 +1384,6 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
)
|
)
|
||||||
metrics.interactiveMessagesFailures.inc({ type: buttonType, reason: 'injection_failed' })
|
metrics.interactiveMessagesFailures.inc({ type: buttonType, reason: 'injection_failed' })
|
||||||
}
|
}
|
||||||
} else if (isCarousel && buttonType) {
|
|
||||||
logger.info(
|
|
||||||
{ msgId, buttonType, to: destinationJid },
|
|
||||||
'[EXPERIMENTAL] Skipping biz node injection for carousel message (not needed, causes error 479)'
|
|
||||||
)
|
|
||||||
metrics.interactiveMessagesSent.inc({ type: 'carousel' })
|
|
||||||
} else if (buttonType && !enableInteractiveMessages) {
|
} else if (buttonType && !enableInteractiveMessages) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
{ msgId, buttonType },
|
{ msgId, buttonType },
|
||||||
|
|||||||
Reference in New Issue
Block a user