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/services
parente4ee98c30d4041c47c2ee2b100cc2f0d9be1148c (diff)
Add metadata to voice messages
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/services')
-rw-r--r--src/services/filesSharingServices.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/services/filesSharingServices.js b/src/services/filesSharingServices.js
index 35ad3470b..6fa40ab94 100644
--- a/src/services/filesSharingServices.js
+++ b/src/services/filesSharingServices.js
@@ -29,8 +29,9 @@ import { showError } from '@nextcloud/dialogs'
* @param {string} token The conversation's token
* e.g. `/myfile.txt`
* @param {string} referenceId An optional reference id to recognize the message later
- */
-const shareFile = async function(path, token, referenceId) {
+ * @param {array} metadata the metadata json encoded array
+*/
+const shareFile = async function(path, token, referenceId, metadata) {
try {
return axios.post(
generateOcsUrl('apps/files_sharing/api/v1/shares'),
@@ -39,6 +40,7 @@ const shareFile = async function(path, token, referenceId) {
path,
shareWith: token,
referenceId,
+ talkMetaData: metadata,
})
} catch (error) {
// FIXME: errors should be handled by called instead