mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-04 03:24:04 +00:00 
			
		
		
		
	Can delete groups
This commit is contained in:
		@@ -606,7 +606,15 @@ export class GroupsHelper {
 | 
			
		||||
		// Delete all group related notifications
 | 
			
		||||
		await NotificationsHelper.DeleteAllRelatedWithGroup(groupID);
 | 
			
		||||
 | 
			
		||||
		// TODO : continue deletion
 | 
			
		||||
		// Delete all group members
 | 
			
		||||
		await DatabaseHelper.DeleteRows(GROUPS_MEMBERS_TABLE, {
 | 
			
		||||
			groups_id: groupID
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		// Delete group information
 | 
			
		||||
		await DatabaseHelper.DeleteRows(GROUPS_LIST_TABLE, {
 | 
			
		||||
			id: groupID
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user