feat(postit): separate call interfaces from text chat

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-12 16:49:48 +00:00
commit 972b1a5cce
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
17 changed files with 379 additions and 130 deletions

View file

@ -163,8 +163,19 @@ namespace Yavsc.Server.Hubs
}
_logger.LogInformation($"returning channel info");
await Clients.Caller.SendAsync("joint", channelInfo);
return channelInfo;
var snapshot = new ChatRoomInfo
{
Name = channelInfo.Name,
Topic = channelInfo.Topic,
Users = [.. channelInfo.Users],
Ops = [.. channelInfo.Ops],
Hops = [.. channelInfo.Hops],
UserNames = channelInfo.Users.Concat(channelInfo.Ops).Concat(channelInfo.Hops)
.Select(id => _cxManager.GetUserName(id))
.Where(name => !string.IsNullOrWhiteSpace(name)).Distinct().ToList()
};
await Clients.Caller.SendAsync("joint", snapshot);
return snapshot;
}
public void Register(string room)