Exemple #1
0
        public async Task <IActionResult> LeaveGroups(int id)
        {
            var conversations = await _chatRepository.GetConversations(id);

            foreach (var conv in conversations)
            {
                await _hub.LeaveGroup($"CONV_{conv.Id}");
            }
            return(Ok());
        }