public bool MessageViewed(SimpleMessage message) { try { message.UserId = CurUserId; var result = _backend.MessageViewed(WorkerContext, message); if (result.Success) { Clients.OthersInGroup(message.ChatId).MessageViewed(message); Logger.Debug(LogKey + message); return(true); } Logger.Warn(result + LogKey + message); } catch (Exception e) { Logger.Error(e); } return(false); }
public ResponseModel <bool> MessageViewed(IWorkerContext context, SimpleMessage message) { return(_backend.MessageViewed(context, message)); }