Added channel saving. Fixed channel loading. Added policy store to channels.
This commit is contained in:
@ -55,11 +55,14 @@ namespace HermesSocketServer.Socket.Handlers
|
||||
sender.WebLogin = data.WebLogin;
|
||||
}
|
||||
|
||||
await _manager.Add(userId);
|
||||
var channel = _manager.Get(userId);
|
||||
if (channel == null)
|
||||
return;
|
||||
|
||||
{
|
||||
channel = await _manager.Add(userId);
|
||||
if (channel == null)
|
||||
return;
|
||||
}
|
||||
|
||||
sender.Name = channel.User.Name;
|
||||
sender.Admin = channel.User.Role == "ADMIN";
|
||||
|
||||
|
Reference in New Issue
Block a user