Extend friend grouping to the lobby team preview

The preview was calling assignTeams without friend data, so the
team layout shown in the lobby could differ from the layout the
game actually started with. Wire friends through ClientInfo so
the preview matches.

Extract the publicId→clientID translation used by both start()
and gameInfo() into buildFriendsLookup() to remove the duplicate.
This commit is contained in:
evanpelle
2026-05-23 20:52:13 +01:00
parent db501c68d2
commit 8f982ce123
4 changed files with 32 additions and 18 deletions
+1
View File
@@ -340,6 +340,7 @@ export class LobbyTeamView extends LitElement {
c.clientID,
false,
c.clanTag,
c.friends ?? [],
),
);
const assignment = assignTeamsLobbyPreview(