1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Remove a TODO

This commit is contained in:
Pierre HUBERT 2020-03-28 14:59:12 +01:00
parent 6b682406aa
commit b6312690cf

View File

@ -485,7 +485,12 @@ export class GroupsController {
// Respond to the request
await GroupsHelper.RespondRequest(groupID, userID, accept);
// TODO : create a notification
// Delete any previous notifications
await NotificationsHelper.DeleteNotificationsGroupsMembership(userID, groupID);
// Create a notification
await NotificationsHelper.CreateGroupMembershipNotification(userID, h.getUserId(), groupID,
accept ? NotifEventType.ACCEPTED_GROUP_MEMBERSHIP_REQUEST : NotifEventType.REJECTED_GROUP_MEMBERSHIP_REQUEST)
h.success("The response to the request has been successfully saved!");
}