From 77382eaca4dd49c81e7834570e61660095f27006 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 28 Mar 2020 13:56:22 +0100 Subject: [PATCH] Remove a 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 0a15390..f679145 100644 --- a/src/controllers/FriendsController.ts +++ b/src/controllers/FriendsController.ts @@ -152,7 +152,9 @@ export class FriendsController { await FriendsHelper.RespondRequest(h.getUserId(), friendID, accept); - // TODO : create notification + // Create notification + await NotificationsUtils.CreateFriendsNotifications(h.getUserId(), friendID, + accept ? NotifEventType.ACCEPTED_FRIEND_REQUEST : NotifEventType.REJECTED_FRIEND_REQUEST); h.success("Response to the friendship request successfully saved!"); }