1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-01-14 14:37:44 +00:00

Delete notifications when cancelling an invitation

This commit is contained in:
Pierre HUBERT 2021-01-24 17:42:30 +01:00
parent de9304a604
commit 1c710ad965

View File

@ -171,7 +171,8 @@ pub fn cancel_invitation(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 invitation has been cancelled!")
}