Exemplo n.º 1
0
        private async Task NotifyUpdateConversations(int siteId)
        {
            foreach (var updatedConversation in UpdatedConversations)
            {
                await _notificationManager.NotifyUpdateConversation(siteId, updatedConversation.Id);
            }

            UpdatedConversations.Clear();
        }
Exemplo n.º 2
0
        public void WithUpdatedConversation(Conversation conversation)
        {
            if (NewConversations.Any(t => t.Id == conversation.Id))
            {
                return;
            }

            if (UpdatedConversations.Any(t => t.Id == conversation.Id))
            {
                return;
            }

            UpdatedConversations.Add(conversation);
        }