mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 23:39:22 +00:00
Delete notification when cancelling request
This commit is contained in:
parent
3ceb2ae13d
commit
7141312eb5
@ -267,7 +267,8 @@ pub fn cancel_request(r: &mut HttpRequestHandler) -> RequestResult {
|
|||||||
|
|
||||||
groups_helper::delete_member(&group_id, &r.user_id()?)?;
|
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!")
|
r.success("The request has been successfully cancelled!")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user