mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-26 13:38:52 +00:00
Remove a TODO
This commit is contained in:
parent
6b682406aa
commit
b6312690cf
@ -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!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user