mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 16:35:17 +00:00
Delete all notifications related with friendship requests
This commit is contained in:
@ -102,7 +102,8 @@ pub fn cancel_request(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
|
||||
friends_helper::remove_request(&r.user_id()?, &friend_id)?;
|
||||
|
||||
// TODO : delete related notifications
|
||||
// Delete related notifications
|
||||
notifications_helper::delete_all_related_with_friendship_request(r.user_id_ref()?, &friend_id)?;
|
||||
|
||||
r.success("Friendship request removed!")
|
||||
}
|
||||
|
Reference in New Issue
Block a user