Notify: fix warning

This commit is contained in:
pavelbannov 2022-07-04 16:55:11 +03:00
parent 4f2bfd2d02
commit 191e66a238

View File

@ -356,8 +356,8 @@ namespace ASC.Notify.Engine
{
responses.Add(response);
return responses;
}
}
try
{
PrepareRequestFillSenders(request, serviceScope);
@ -366,7 +366,8 @@ namespace ASC.Notify.Engine
}
catch (Exception ex)
{
responses.Add(new SendResponse(request.NotifyAction, null, request.Recipient, SendResult.Impossible));
responses.Add(new SendResponse(request.NotifyAction, null, request.Recipient, SendResult.Impossible));
log.Error("Prepare", ex);
}
if (request.SenderNames != null && request.SenderNames.Length > 0)
@ -413,7 +414,6 @@ namespace ASC.Notify.Engine
request.CurrentMessage = noticeMessage;
var preventresponse = CheckPreventInterceptors(request, InterceptorPlace.MessageSend, serviceScope, channel.SenderName);
if (preventresponse != null) return preventresponse;
log.Debug("SendAsync");//temp
channel.SendAsync(noticeMessage);
return new SendResponse(noticeMessage, channel.SenderName, SendResult.Inprogress);