Do not recognize aiff files as audio

This commit is contained in:
Ken Powers 2020-04-16 15:19:37 -04:00 committed by GitHub
parent 40e46d7ca4
commit 0970c73310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,5 +16,7 @@ export const isImage = (value: MIMEType): boolean =>
value && value.startsWith('image/');
export const isVideo = (value: MIMEType): boolean =>
value && value.startsWith('video/');
// As of 2020-04-16 aif files do not play in Electron nor Chrome. We should only
// recognize them as file attachments.
export const isAudio = (value: MIMEType): boolean =>
value && value.startsWith('audio/');
value && value.startsWith('audio/') && !value.endsWith('aiff');