Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 public void GroupCreated(GroupChatParticipantViewModel group)
 {
 }