1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-21 17:15:17 +00:00

Can send notification to all groups moderators

This commit is contained in:
2020-03-24 18:59:06 +01:00
parent 45e9ca43fe
commit 900ed3cf98
2 changed files with 23 additions and 2 deletions

View File

@ -328,7 +328,11 @@ export class GroupsController {
// Respond to the invitation
await GroupsHelper.RespondInvitation(groupID, h.getUserId(), accept);
// TODO : Create a notification
// Create a notification
await NotificationsUtils.CreateGroupMembershipNotification(
h.getUserId(), 0, groupID,
accept ? NotifEventType.ACCEPTED_GROUP_MEMBERSHIP_INVITATION : NotifEventType.REJECTED_GROUP_MEMBERSHIP_INVITATION
)
h.success("Response to the invitation was successfully saved!");
}