Added channel saving. Fixed channel loading. Added policy store to channels.

This commit is contained in:
Tom
2024-10-20 19:32:30 +00:00
parent 5d69c647cf
commit a9cdb65895
6 changed files with 178 additions and 16 deletions

View File

@ -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";