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!"); }