private async Task NotifyUpdateConversations(int siteId) { foreach (var updatedConversation in UpdatedConversations) { await _notificationManager.NotifyUpdateConversation(siteId, updatedConversation.Id); } UpdatedConversations.Clear(); }
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); }