fixes op send message

This commit is contained in:
2019-06-14 13:02:16 +01:00
parent 2203da5055
commit f44cee5d25

View File

@ -338,7 +338,7 @@ namespace Yavsc
return; return;
} }
var userName = _cxManager.GetUserName(Context.ConnectionId); var userName = _cxManager.GetUserName(Context.ConnectionId);
if (!chanInfo.Users.Contains(userName)) if (!_cxManager.IsPresent(roomName, userName))
{ {
var notSentMsg = _localizer.GetString(ChatHubConstants.LabnoJoinNoSend); var notSentMsg = _localizer.GetString(ChatHubConstants.LabnoJoinNoSend);
Clients.Caller.notifyUser(NotificationTypes.Error, roomName, notSentMsg); Clients.Caller.notifyUser(NotificationTypes.Error, roomName, notSentMsg);