diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-11-15 11:25:02 +0100 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-11-16 17:55:20 +0100 |
commit | 4502411be1b020615eea06f3992ecc05c00246b0 (patch) | |
tree | 35326eaae9437ec1de442bf944b87fa442e58d8f | |
parent | c1df887f0736f2e47f44bd5d6d9b54fedd9bdeb9 (diff) |
fix: pass mimetype of voice message file
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/components/NewMessage/NewMessageAudioRecorder.vue | 2 |
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) } |