mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-01-15 06:57:44 +00:00
Delete notifications when cancelling an invitation
This commit is contained in:
parent
de9304a604
commit
1c710ad965
@ -171,7 +171,8 @@ pub fn cancel_invitation(r: &mut HttpRequestHandler) -> RequestResult {
|
|||||||
|
|
||||||
groups_helper::delete_member(&group_id, &user_id)?;
|
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!")
|
r.success("Membership invitation has been cancelled!")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user