mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-26 13:38:52 +00:00
Send a notification when a user requests to join a group
This commit is contained in:
parent
0d787f9300
commit
620f7c38c4
@ -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!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user