mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Can cancel a group membership invitation
This commit is contained in:
		@@ -268,6 +268,15 @@ class GroupsHelper {
 | 
			
		||||
            .map((f) => _apiToGroupMembership(f))
 | 
			
		||||
            .toList());
 | 
			
		||||
 | 
			
		||||
  /// Cancel a group membership invitation
 | 
			
		||||
  ///
 | 
			
		||||
  /// Throws an exception in case of failure
 | 
			
		||||
  static Future<void> cancelInvitation(int groupID, int userID) async =>
 | 
			
		||||
      await APIRequest.withLogin("groups/cancel_invitation")
 | 
			
		||||
          .addInt("groupID", groupID)
 | 
			
		||||
          .addInt("userID", userID)
 | 
			
		||||
          .execWithThrow();
 | 
			
		||||
 | 
			
		||||
  /// Turn an API entry into a group object
 | 
			
		||||
  Group _getGroupFromAPI(Map<String, dynamic> map) {
 | 
			
		||||
    return Group(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user