From 30f133b2a36349f6720f1776d54f9827fdb71710 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 25 Jan 2021 18:33:23 +0100 Subject: [PATCH] Delete notification when removing a user from a group --- src/controllers/groups_controller.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/groups_controller.rs b/src/controllers/groups_controller.rs index d1255ea..5afd4cf 100644 --- a/src/controllers/groups_controller.rs +++ b/src/controllers/groups_controller.rs @@ -295,7 +295,8 @@ pub fn delete_member(r: &mut HttpRequestHandler) -> RequestResult { 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!") }