Set HasPassword correctly in the response room

This commit is contained in:
smoogipoo
2021-07-19 20:03:00 +09:00
parent 2515785f93
commit 26d0eea485

View File

@ -127,6 +127,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
{ {
var responseRoom = new Room(); var responseRoom = new Room();
responseRoom.CopyFrom(room); responseRoom.CopyFrom(room);
responseRoom.HasPassword.Value = !string.IsNullOrEmpty(responseRoom.Password.Value);
responseRoom.Password.Value = null; responseRoom.Password.Value = null;
if (!withParticipants) if (!withParticipants)
responseRoom.RecentParticipants.Clear(); responseRoom.RecentParticipants.Clear();