1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-28 14:38:52 +00:00

Delete notifications when deleting a friend

This commit is contained in:
Pierre HUBERT 2021-01-24 18:21:03 +01:00
parent c7c651e6fe
commit 4af2e71761

View File

@ -138,7 +138,8 @@ pub fn remove_friend(r: &mut HttpRequestHandler) -> RequestResult {
friends_helper::remove_friendship(r.user_id_ref()?, &friend_id)?; friends_helper::remove_friendship(r.user_id_ref()?, &friend_id)?;
// TODO : Delete any related notification // Delete any related notification
notifications_helper::delete_all_related_with_friendship_request(r.user_id_ref()?, &friend_id)?;
r.success("The friend was removed from the list!") r.success("The friend was removed from the list!")
} }