mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-11-04 01:24:04 +00:00 
			
		
		
		
	Delete notification when removing a user from a group
This commit is contained in:
		@@ -295,7 +295,8 @@ pub fn delete_member(r: &mut HttpRequestHandler) -> RequestResult {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    groups_helper::delete_member(&group_id, &user_id)?;
 | 
					    groups_helper::delete_member(&group_id, &user_id)?;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TODO : Delete related notifications
 | 
					    // Delete related notifications
 | 
				
			||||||
 | 
					    notifications_helper::delete_all_related_to_group_membership_notifications(&user_id, &group_id)?;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    r.success("Membership of the user has been successfully deleted!")
 | 
					    r.success("Membership of the user has been successfully deleted!")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user