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:
@ -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!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user