mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
fix: normalize file extension checks for case insensitivity in sticker conversion
This commit is contained in:
parent
6e7dd51679
commit
027401b839
@ -2725,9 +2725,11 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
}
|
||||
|
||||
private isAnimated(image: string, buffer: Buffer): boolean {
|
||||
if (image.includes('.gif')) return true;
|
||||
const lowerCaseImage = image.toLowerCase();
|
||||
|
||||
if (image.includes('.webp')) return this.isAnimatedWebp(buffer);
|
||||
if (lowerCaseImage.includes('.gif')) return true;
|
||||
|
||||
if (lowerCaseImage.includes('.webp')) return this.isAnimatedWebp(buffer);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user