mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-25 23: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
|
// Respond to the invitation
|
||||||
await GroupsHelper.RespondInvitation(groupID, h.getUserId(), accept);
|
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
|
// Create a notification
|
||||||
await NotificationsHelper.CreateGroupMembershipNotification(
|
await NotificationsHelper.CreateGroupMembershipNotification(
|
||||||
h.getUserId(), 0, groupID,
|
h.getUserId(), 0, groupID,
|
||||||
|
Loading…
Reference in New Issue
Block a user