diff --git a/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte b/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte index 254b61edc..514c2ec67 100644 --- a/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte +++ b/apps/matrix/apps/web/src/lib/components/chat/MessageInput.svelte @@ -6,7 +6,7 @@ Smiley, X, Image, - File, + File as FileIcon, CircleNotch, Microphone, Stop, @@ -215,7 +215,8 @@ uploadProgress = 0; // Create a File from the Blob - const file = new File([blob], `voice-${Date.now()}.webm`, { type: 'audio/webm' }); + const filename = `voice-${Date.now()}.webm`; + const file = new File([blob], filename, { type: 'audio/webm' }); const success = await matrixStore.sendFile(file, (progress) => { uploadProgress = progress; @@ -236,10 +237,12 @@ } -
Nachricht bearbeiten
@@ -269,7 +272,9 @@ {#if uploading} -Aufnahme...
- {formatDuration(recordingDuration)} + {formatDuration(recordingDuration)}