Fix heic/heif extension name case sensitivity

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-10-22 16:34:25 -05:00 committed by GitHub
parent 517e46c876
commit 3891074f40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,8 +32,8 @@ export const TEXT_ATTACHMENT = stringToMIMEType('text/x-signal-story');
export const isHeic = (value: string, fileName: string): boolean =>
value === 'image/heic' ||
value === 'image/heif' ||
fileName.endsWith('.heic') ||
fileName.endsWith('.heif');
fileName.toLowerCase().endsWith('.heic') ||
fileName.toLowerCase().endsWith('.heif');
export const isGif = (value: string): value is MIMEType =>
value === 'image/gif';
export const isJPEG = (value: string): value is MIMEType =>