Dashboard Customization Polish (#2295)
This commit is contained in:
parent
25e759d301
commit
25ffb2ffe1
42 changed files with 255 additions and 258 deletions
|
|
@ -22,7 +22,8 @@ public class MessageHub : Hub
|
|||
|
||||
public override async Task OnConnectedAsync()
|
||||
{
|
||||
await _tracker.UserConnected(Context.User!.GetUserId(), Context.ConnectionId);
|
||||
var userId = Context.User!.GetUserId();
|
||||
await _tracker.UserConnected(userId, Context.ConnectionId);
|
||||
|
||||
var currentUsers = await PresenceTracker.GetOnlineUsers();
|
||||
await Clients.All.SendAsync(MessageFactory.OnlineUsers, currentUsers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue