fix(list-message): remove duplicate header in nativeList conversion

When title is not provided, the text was used as fallback for both
title and description, causing the header to appear twice. Now title
only uses an explicit title field, description uses text.

https://claude.ai/code/session_01SJdSHiUxtwzV8bb5dedodb
This commit is contained in:
Claude
2026-02-06 05:30:58 +00:00
parent 6425e06543
commit 559ccde015
+1 -1
View File
@@ -1081,7 +1081,7 @@ export const generateWAMessageContent = async (
// Legacy format (listMessage) works on all platforms
const generated = generateListMessageLegacy(
{ sections: listMsg.nativeList.sections },
listMsg.title || listMsg.text || '',
listMsg.title || '',
listMsg.text || '',
listMsg.nativeList.buttonText,
listMsg.footer