mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-10-30 17:14:43 +00:00 
			
		
		
		
	Automatically mark the user as following the group
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user