summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaksim Sukharev <antreesy.web@gmail.com>2024-11-15 11:25:02 +0100
committerMaksim Sukharev <antreesy.web@gmail.com>2024-11-16 17:55:20 +0100
commit4502411be1b020615eea06f3992ecc05c00246b0 (patch)
tree35326eaae9437ec1de442bf944b87fa442e58d8f
parentc1df887f0736f2e47f44bd5d6d9b54fedd9bdeb9 (diff)
fix: pass mimetype of voice message file
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r--src/components/NewMessage/NewMessageAudioRecorder.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/NewMessage/NewMessageAudioRecorder.vue b/src/components/NewMessage/NewMessageAudioRecorder.vue
index b78f5f4400..c13eb0e7c9 100644
--- a/src/components/NewMessage/NewMessageAudioRecorder.vue
+++ b/src/components/NewMessage/NewMessageAudioRecorder.vue
@@ -246,7 +246,7 @@ export default {
// Generate file name
const fileName = this.generateFileName()
// Convert blob to file
- const audioFile = new File([this.blob], fileName)
+ const audioFile = new File([this.blob], fileName, { type: 'audio/wav' })
this.$emit('audio-file', audioFile)
this.$emit('recording', false)
}