diff --git a/src/controllers/friends_controller.rs b/src/controllers/friends_controller.rs index 37bafe7..9a83bf9 100644 --- a/src/controllers/friends_controller.rs +++ b/src/controllers/friends_controller.rs @@ -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!") }