mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Can remove a member from a group
This commit is contained in:
		@@ -297,6 +297,15 @@ class GroupsHelper {
 | 
			
		||||
          .addBool("accept", accept)
 | 
			
		||||
          .execWithThrow();
 | 
			
		||||
 | 
			
		||||
  /// Remove a member from a group
 | 
			
		||||
  ///
 | 
			
		||||
  /// Throws an exception in case of failure
 | 
			
		||||
  static Future<void> removeMemberFromGroup(int groupID, int userID) async =>
 | 
			
		||||
      APIRequest.withLogin("groups/delete_member")
 | 
			
		||||
          .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