mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-21 21:09:22 +00:00
Automatically mark the user as following the group
This commit is contained in:
parent
8cc8a83ab6
commit
85e05ccb91
@ -328,6 +328,10 @@ export class GroupsController {
|
||||
// Respond to the invitation
|
||||
await GroupsHelper.RespondInvitation(groupID, h.getUserId(), accept);
|
||||
|
||||
// Mark automatically the user as following if he accepted the invitation
|
||||
if(accept)
|
||||
await GroupsHelper.SetFollowing(groupID, h.getUserId(), true);
|
||||
|
||||
// Create a notification
|
||||
await NotificationsHelper.CreateGroupMembershipNotification(
|
||||
h.getUserId(), 0, groupID,
|
||||
|
Loading…
Reference in New Issue
Block a user