mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-27 22:18:51 +00:00
Delete notifications related with a group when quitting it
This commit is contained in:
parent
c042077067
commit
b6021b11d2
@ -368,7 +368,8 @@ pub fn remove_membership(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
|
||||
groups_helper::delete_member(&group_id, &r.user_id()?)?;
|
||||
|
||||
// TODO : delete group membership notifications
|
||||
// Delete group membership notifications
|
||||
notifications_helper::delete_all_related_to_group_membership_notifications(r.user_id_ref()?, &group_id)?;
|
||||
|
||||
r.success("Your membership has been successfully deleted!")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user