diff --git a/src/controllers/groups_controller.rs b/src/controllers/groups_controller.rs index 45a131d..d1255ea 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -267,7 +267,8 @@ pub fn cancel_request(r: &mut HttpRequestHandler) -> RequestResult { groups_helper::delete_member(&group_id, &r.user_id()?)?; - // TODO : delete any related notification + // Delete any related notification + notifications_helper::delete_all_related_to_group_membership_notifications(r.user_id_ref()?, &group_id)?; r.success("The request has been successfully cancelled!") }