mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-10-31 07:34:45 +00:00 
			
		
		
		
	Delete notifications when deleting a friend
This commit is contained in:
		| @@ -138,7 +138,8 @@ pub fn remove_friend(r: &mut HttpRequestHandler) -> RequestResult { | ||||
|  | ||||
|     friends_helper::remove_friendship(r.user_id_ref()?, &friend_id)?; | ||||
|  | ||||
|     // TODO : Delete any related notification | ||||
|     // Delete any related notification | ||||
|     notifications_helper::delete_all_related_with_friendship_request(r.user_id_ref()?, &friend_id)?; | ||||
|  | ||||
|     r.success("The friend was removed from the list!") | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user