fix(carousel): add messageVersion and fix messageParamsJson in card nativeFlowMessage

Each carousel card's nativeFlowMessage was missing messageVersion and
had empty string '' for messageParamsJson instead of '{}'. This caused
error 479 on linked devices (Web/Desktop) while phone rendered OK.

https://claude.ai/code/session_01EK9NpViRCtda1WAvFd8ptR
This commit is contained in:
Claude
2026-02-06 15:29:56 +00:00
parent b67c7b7348
commit 94737a013f
+2 -1
View File
@@ -637,7 +637,8 @@ export const generateCarouselMessage = async (
footer: card.footer ? { text: card.footer } : undefined, footer: card.footer ? { text: card.footer } : undefined,
nativeFlowMessage: { nativeFlowMessage: {
buttons: card.buttons.map(formatNativeFlowButton), buttons: card.buttons.map(formatNativeFlowButton),
messageParamsJson: '' messageParamsJson: JSON.stringify({}),
messageVersion: 1
} }
} }
})) }))