1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Send list of active invites as part of room description

This commit is contained in:
Ivan Savenko
2024-05-13 11:43:28 +00:00
parent e12db20314
commit a4ea74fbbc
7 changed files with 58 additions and 0 deletions

View File

@@ -218,6 +218,9 @@ static JsonNode loadLobbyGameRoomToJson(const LobbyGameRoom & gameRoom)
for(const auto & account : gameRoom.participants)
jsonEntry["participants"].Vector().push_back(loadLobbyAccountToJson(account));
for(const auto & account : gameRoom.invited)
jsonEntry["invited"].Vector().push_back(loadLobbyAccountToJson(account));
return jsonEntry;
}