public MessagesUpdatedNodeNoticeHandler(NodeNotice notice,
                                         NodeConnection nodeConnection,
                                         IConversationsNoticeService conversationsNoticeService,
                                         IUpdateMessagesService updateMessagesService,
                                         IAttachmentsService attachmentsService)
 {
     this.notice                     = (MessagesUpdatedNodeNotice)notice;
     this.nodeConnection             = nodeConnection;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateMessagesService      = updateMessagesService;
     this.attachmentsService         = attachmentsService;
 }
 public async void SendMessagesUpdateNodeNoticeAsync(List <MessageDto> messages, long conversationId, ConversationType conversationType, long editorUserId)
 {
     try
     {
         List <long> nodesId = new List <long>();
         foreach (var message in messages)
         {
             nodesId.AddRange(message.NodesIds);
         }
         nodesId = nodesId.Distinct().ToList();
         MessagesUpdatedNodeNotice notice = new MessagesUpdatedNodeNotice(messages, editorUserId);
         await SendNoticeToNodesAsync(notice, nodesId).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         Logger.WriteLog(ex);
     }
 }