Can create conversations for groups

This commit is contained in:
2021-04-05 14:59:57 +02:00
parent 07fc609694
commit ac2ba87f18
3 changed files with 92 additions and 1 deletions

View File

@ -119,6 +119,21 @@ const GroupsInterface = {
ComunicWeb.common.api.makeAPIrequest(apiURI, settings, true, callback);
},
/**
* Create a new group conversation
*
* @param {Number} groupID The ID of the target group
* @param {String} convName The name of the new conversation
* @param {String} minMembershipLevel Minimal membership level
*/
createGroupConversation: async function(groupID, convName, minMembershipLevel) {
await api("groups/create_conversation", {
group_id: groupID,
min_membership_level: minMembershipLevel,
name: convName
}, true)
},
/**
* Check the availability of a virtual directory for a group
*