mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Can create conversations for groups
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user