diff --git a/src/plugins/voiceMessages/index.tsx b/src/plugins/voiceMessages/index.tsx index c6cffe633..0f8107154 100644 --- a/src/plugins/voiceMessages/index.tsx +++ b/src/plugins/voiceMessages/index.tsx @@ -147,7 +147,7 @@ function Modal({ modalProps }: { modalProps: ModalProps; }) { URL.revokeObjectURL(blobUrl); }, [blobUrl]); - const [meta] = useAwaiter(async () => { + const [meta, metaError] = useAwaiter(async () => { if (!blob) return EMPTY_META; const audioContext = new AudioContext(); @@ -217,11 +217,15 @@ function Modal({ modalProps }: { modalProps: ModalProps; }) { Preview - + {metaError + ? Failed to parse selected audio file: {metaError.message} + : ( + + )} {isUnsupportedFormat && ( @@ -239,7 +243,7 @@ function Modal({ modalProps }: { modalProps: ModalProps; }) {