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:
Diffstat (limited to 'src/services/conversationsService.js')
-rw-r--r--src/services/conversationsService.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/services/conversationsService.js b/src/services/conversationsService.js
index d592dfd53..f71470092 100644
--- a/src/services/conversationsService.js
+++ b/src/services/conversationsService.js
@@ -346,6 +346,13 @@ const changeListable = async function(token, listable) {
return response
}
+const setConversationDescription = async function(token, description) {
+ const response = await axios.put(generateOcsUrl('apps/spreed/api/v3', 2) + `room/${token}/description`, {
+ description,
+ })
+ return response
+}
+
export {
fetchConversations,
fetchConversation,
@@ -367,4 +374,5 @@ export {
changeListable,
setConversationPassword,
setConversationName,
+ setConversationDescription,
}