예제 #1
0
 private IEnumerable <ParticipantResponseViewModel> FilteredGroupParticipants(string currentUserId)
 {
     return(AllConnectedParticipants.ToList()
            .Where(p => p.Participant.ParticipantType == ChatParticipantTypeEnum.User ||
                   AllGroupParticipants.Any(g => g.Id == p.Participant.Id && g.ChattingTo.Any(u => u.Id == currentUserId))
                   ));
 }