public void GroupCreated(GroupChatParticipantViewModel group) { AllGroupParticipants.Add(group); // Pushing the current user to the "chatting to" list to keep track of who's created the group as well. // In your application you'll probably want a more sofisticated group persistency and management group.ChattingTo.Add(new ChatParticipantViewModel() { Id = Context.ConnectionId }); AllConnectedParticipants.Add(new ParticipantResponseViewModel() { Metadata = new ParticipantMetadataViewModel() { TotalUnreadMessages = 0 }, Participant = group }); Clients.All.SendAsync("friendsListChanged", AllConnectedParticipants); }
public void GroupCreated(GroupChatParticipantViewModel group) { }