Merge pull request #1406 from Faelst/hotfix/issues-1385

fix: when you set jpegThumbnail, image not appear on app mobile
This commit is contained in:
Davidson Gomes 2025-05-10 13:07:06 -03:00 committed by GitHub
commit e6a72bd829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2713,9 +2713,6 @@ export class BaileysStartupService extends ChannelStartupService {
prepareMedia[mediaType].fileName = mediaMessage.fileName;
if (mediaMessage.mediatype === 'video') {
prepareMedia[mediaType].jpegThumbnail = Uint8Array.from(
readFileSync(join(process.cwd(), 'public', 'images', 'video-cover.png')),
);
prepareMedia[mediaType].gifPlayback = false;
}