1
0
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:
Pierre HUBERT 2020-04-09 08:06:49 +02:00
parent 8cc8a83ab6
commit 85e05ccb91

View File

@ -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,