1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-25 14:59:22 +00:00

Send a notification when a user requests to join a group

This commit is contained in:
Pierre HUBERT 2020-03-28 14:41:35 +01:00
parent 0d787f9300
commit 620f7c38c4

View File

@ -369,9 +369,11 @@ export class GroupsController {
await GroupsHelper.InsertMember(member);
if(group.registrationLevel == GroupRegistrationLevel.MODERATED_REGISTRATION) {
//TODO : Send a notification
}
if(group.registrationLevel == GroupRegistrationLevel.MODERATED_REGISTRATION)
// Send a notification
await NotificationsHelper.CreateGroupMembershipNotification(
h.getUserId(), 0, groupID, NotifEventType.SENT_GROUP_MEMBERSHIP_REQUEST)
h.success("The membership has been successfully saved!");
}