mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-08-19 12:47:59 +01:00
Fix heic/heif extension name case sensitivity
Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
co-authored by
Jamie Kyle
parent
6ad1b91a8c
commit
5c679fcf64
+2
-2
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user