1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-27 22:18:51 +00:00

Delete notification when cancelling request

This commit is contained in:
Pierre HUBERT 2021-01-25 18:31:34 +01:00
parent 3ceb2ae13d
commit 7141312eb5

View File

@ -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!")
}