Revert "fix: carousel renders on WhatsApp Web without F5"

This reverts commit f2c14f9ad6.
This commit is contained in:
Renato Alcara
2026-03-07 00:41:38 -03:00
parent f2c14f9ad6
commit afce764ce9
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -1068,11 +1068,6 @@ export const makeMessagesSocket = (config: SocketConfig) => {
return 'media'
}
// Carousel with images → media type for Web real-time rendering
if (normalizedMessage.interactiveMessage?.carouselMessage) {
return 'media'
}
return 'text'
}
+1 -1
View File
@@ -160,7 +160,7 @@ export const extractImageThumb = async (bufferOrFilePath: Readable | Buffer | st
height: dimensions.height
}
}
} else if ('jimp' in lib && (typeof lib.jimp?.Jimp === 'object' || typeof lib.jimp?.Jimp === 'function')) {
} else if ('jimp' in lib && typeof lib.jimp?.Jimp === 'object') {
const jimp = await (lib.jimp.Jimp as any).read(bufferOrFilePath)
const dimensions = {
width: jimp.width,