mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 20:56:04 +00:00
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:
@@ -340,6 +340,7 @@ export class LobbyTeamView extends LitElement {
|
||||
c.clientID,
|
||||
false,
|
||||
c.clanTag,
|
||||
c.friends ?? [],
|
||||
),
|
||||
);
|
||||
const assignment = assignTeamsLobbyPreview(
|
||||
|
||||
Reference in New Issue
Block a user