From 75b47cedcb00741f75fbcbca85d173fb7524d70f Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 28 Mar 2020 13:59:50 +0100 Subject: [PATCH] Remove one TODO --- src/controllers/FriendsController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/FriendsController.ts b/src/controllers/FriendsController.ts index f679145..5392fb8 100644 --- a/src/controllers/FriendsController.ts +++ b/src/controllers/FriendsController.ts @@ -169,7 +169,9 @@ export class FriendsController { await FriendsHelper.RemoveFriendship(h.getUserId(), friendID); - // TODO : delete any related notification + // Delete any related notification + await NotificationsUtils.DeleteNotificationsFrienshipRequest( + h.getUserId(), friendID); h.success("The friend was removed from the list!"); }