Revert "fix: carousel renders on WhatsApp Web without F5"
This reverts commit f2c14f9ad6.
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user