Esempio n. 1
0
        private void handleChannelMessages(IEnumerable <Message> messages)
        {
            var channels = JoinedChannels.ToList();

            foreach (var group in messages.GroupBy(m => m.ChannelId))
            {
                channels.Find(c => c.Id == group.Key)?.AddNewMessages(group.ToArray());
            }
        }