mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +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);
|
await GroupsHelper.InsertMember(member);
|
||||||
|
|
||||||
if(group.registrationLevel == GroupRegistrationLevel.MODERATED_REGISTRATION) {
|
if(group.registrationLevel == GroupRegistrationLevel.MODERATED_REGISTRATION)
|
||||||
//TODO : Send a notification
|
// Send a notification
|
||||||
}
|
await NotificationsHelper.CreateGroupMembershipNotification(
|
||||||
|
h.getUserId(), 0, groupID, NotifEventType.SENT_GROUP_MEMBERSHIP_REQUEST)
|
||||||
|
|
||||||
|
|
||||||
h.success("The membership has been successfully saved!");
|
h.success("The membership has been successfully saved!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user