diff --git a/src/controllers/groups_controller.rs b/src/controllers/groups_controller.rs index ddbc47a..0084dfa 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -368,7 +368,8 @@ pub fn remove_membership(r: &mut HttpRequestHandler) -> RequestResult { groups_helper::delete_member(&group_id, &r.user_id()?)?; - // TODO : delete group membership notifications + // Delete group membership notifications + notifications_helper::delete_all_related_to_group_membership_notifications(r.user_id_ref()?, &group_id)?; r.success("Your membership has been successfully deleted!") }