Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@pm.me>2021-06-11 15:09:46 +0300
committerMarco Ambrosini <marcoambrosini@pm.me>2021-06-11 15:25:52 +0300
commit7088d508356bffe8b77a2ececcdaa9e6698f03f8 (patch)
treed0df891009b289722ad6a03d105fc25c368f94db /src/components/NewMessageForm
parente4ee98c30d4041c47c2ee2b100cc2f0d9be1148c (diff)
Add metadata to voice messages
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/components/NewMessageForm')
-rw-r--r--src/components/NewMessageForm/NewMessageForm.vue10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue
index 0cf2b45ec..84b25e943 100644
--- a/src/components/NewMessageForm/NewMessageForm.vue
+++ b/src/components/NewMessageForm/NewMessageForm.vue
@@ -405,12 +405,14 @@ export default {
*
* @param {File[] | FileList} files pasted files list
* @param {bool} rename whether to rename the files
+ * @param {bool} isVoiceMessage indicates whether the file is a vooicemessage
+
*/
- async handleFiles(files, rename = false) {
- // Create a unique id for the upload operation
+ async handleFiles(files, rename = false, isVoiceMessage) {
+ // Create a unique id for the upload operation
const uploadId = new Date().getTime()
// Uploads and shares the files
- await this.$store.dispatch('initialiseUpload', { files, token: this.token, uploadId, rename })
+ await this.$store.dispatch('initialiseUpload', { files, token: this.token, uploadId, rename, isVoiceMessage })
},
/**
@@ -462,7 +464,7 @@ export default {
},
handleAudioFile(payload) {
- this.handleFiles([payload])
+ this.handleFiles([payload], false, true)
},
handleRecording(payload) {