mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Also copy password in test room manager
This commit is contained in:
parent
26d0eea485
commit
a5a0f12e19
@ -49,6 +49,11 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
|
||||
apiRoom.CopyFrom(createRoomRequest.Room);
|
||||
apiRoom.RoomID.Value ??= currentRoomId++;
|
||||
|
||||
// Passwords are explicitly not copied between rooms.
|
||||
apiRoom.HasPassword.Value = !string.IsNullOrEmpty(createRoomRequest.Room.Password.Value);
|
||||
apiRoom.Password.Value = createRoomRequest.Room.Password.Value;
|
||||
|
||||
for (int i = 0; i < apiRoom.Playlist.Count; i++)
|
||||
apiRoom.Playlist[i].ID = currentPlaylistItemId++;
|
||||
|
||||
@ -127,7 +132,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
{
|
||||
var responseRoom = new Room();
|
||||
responseRoom.CopyFrom(room);
|
||||
responseRoom.HasPassword.Value = !string.IsNullOrEmpty(responseRoom.Password.Value);
|
||||
responseRoom.Password.Value = null;
|
||||
if (!withParticipants)
|
||||
responseRoom.RecentParticipants.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user