Include mimeType in toast error
This commit is contained in:
committed by
Samuel Newman
parent
018bd5e7d9
commit
379dfe211f
@@ -824,7 +824,7 @@ let ComposerPost = React.memo(function ComposerPost({
|
|||||||
if (isNative) return // web only
|
if (isNative) return // web only
|
||||||
const [mimeType] = uri.slice('data:'.length).split(';')
|
const [mimeType] = uri.slice('data:'.length).split(';')
|
||||||
if (!SUPPORTED_MIME_TYPES.includes(mimeType as SupportedMimeTypes)) {
|
if (!SUPPORTED_MIME_TYPES.includes(mimeType as SupportedMimeTypes)) {
|
||||||
toast.show(_(msg`Unsupported video type`), {
|
toast.show(_(msg`Unsupported video type: ${mimeType}`), {
|
||||||
type: 'error',
|
type: 'error',
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user