mirror of
https://github.com/ppy/osu.git
synced 2026-06-05 01:04:16 +08:00
Fix incorrect HasPassword value for returned rooms
This commit is contained in:
@@ -179,9 +179,15 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
||||
private Room createResponseRoom(Room room, bool withParticipants)
|
||||
{
|
||||
var responseRoom = cloneRoom(room);
|
||||
|
||||
// Password is hidden from the response, and is only propagated via HasPassword.
|
||||
bool hadPassword = responseRoom.HasPassword.Value;
|
||||
responseRoom.Password.Value = null;
|
||||
responseRoom.HasPassword.Value = hadPassword;
|
||||
|
||||
if (!withParticipants)
|
||||
responseRoom.RecentParticipants.Clear();
|
||||
|
||||
return responseRoom;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user