Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 20b5a4703d |
@@ -1253,12 +1253,12 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
const isCarousel = isCarouselMessage(message)
|
const isCarousel = isCarouselMessage(message)
|
||||||
|
|
||||||
// Collect biz/bot nodes to append AFTER device-identity and tctoken
|
// Collect biz/bot nodes to append AFTER device-identity and tctoken
|
||||||
// Stanza order: participants → device-identity → tctoken → biz
|
// Stanza order: participants → device-identity → tctoken → biz (when applicable)
|
||||||
// The biz node MUST be last for WhatsApp Web carousel rendering
|
// Carousel messages must NOT have biz node (breaks WhatsApp Web rendering)
|
||||||
const deferredNodes: BinaryNode[] = []
|
const deferredNodes: BinaryNode[] = []
|
||||||
|
|
||||||
// Inject biz node for interactive messages (including carousel)
|
// Inject biz node for interactive messages (skip carousel — biz node breaks Web rendering)
|
||||||
if (buttonType && enableInteractiveMessages) {
|
if (buttonType && enableInteractiveMessages && !isCarousel) {
|
||||||
const startTime = Date.now()
|
const startTime = Date.now()
|
||||||
|
|
||||||
// Debug: Log message structure to diagnose list detection
|
// Debug: Log message structure to diagnose list detection
|
||||||
|
|||||||
Reference in New Issue
Block a user