mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can invite a user to join a group
This commit is contained in:
@ -268,6 +268,15 @@ class GroupsHelper {
|
||||
.map((f) => _apiToGroupMembership(f))
|
||||
.toList());
|
||||
|
||||
/// Invite a user to join a group
|
||||
///
|
||||
/// Throws an exception in case of failure
|
||||
static Future<void> sendInvitation(int groupID, int userID) async =>
|
||||
APIRequest.withLogin("groups/invite")
|
||||
.addInt("group_id", groupID)
|
||||
.addInt("userID", userID)
|
||||
.execWithThrow();
|
||||
|
||||
/// Cancel a group membership invitation
|
||||
///
|
||||
/// Throws an exception in case of failure
|
||||
|
Reference in New Issue
Block a user