Fix Lobby User List
This commit is contained in:
parent
e561b84334
commit
abaa850016
@ -90,7 +90,7 @@ namespace qtc_api.Hubs
|
|||||||
|
|
||||||
await Clients.Group("LOBBY").SendAsync("RoomMessage", $"[SERVER] User {user.Username} Has Left The Lobby");
|
await Clients.Group("LOBBY").SendAsync("RoomMessage", $"[SERVER] User {user.Username} Has Left The Lobby");
|
||||||
|
|
||||||
if (GroupUsers.TryGetValue("LOBBY", out _)) GroupUsers["LOBBY"].Remove(user);
|
if (GroupUsers.TryGetValue("LOBBY", out _)) GroupUsers["LOBBY"].Remove(GroupUsers["LOBBY"].FirstOrDefault(e => e.Id == user.Id)!);
|
||||||
|
|
||||||
await Clients.Client("LOBBY").SendAsync("RoomUserList", GroupUsers["LOBBY"]);
|
await Clients.Client("LOBBY").SendAsync("RoomUserList", GroupUsers["LOBBY"]);
|
||||||
Log($"User {user.Username} Has Left The Lobby");
|
Log($"User {user.Username} Has Left The Lobby");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user