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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user