1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

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();
responseRoom.CopyFrom(room);
responseRoom.HasPassword.Value = !string.IsNullOrEmpty(responseRoom.Password.Value);
responseRoom.Password.Value = null;
if (!withParticipants)
responseRoom.RecentParticipants.Clear();