mirror of
https://github.com/ppy/osu
synced 2025-04-10 11:11:48 +00:00
Fix incorrect channel
This commit is contained in:
parent
1df4826a1d
commit
fe6c369e07
@ -24,6 +24,12 @@ namespace osu.Game.Screens.Multi.Match.Components
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
room.RoomID.BindValueChanged(v => updateChannel(), true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateChannel()
|
||||||
|
{
|
||||||
|
if (room.RoomID.Value != null)
|
||||||
Channel.Value = channelManager.JoinChannel(new Channel { Id = room.ChannelId, Type = ChannelType.Multiplayer, Name = $"#mp_{room.RoomID}" });
|
Channel.Value = channelManager.JoinChannel(new Channel { Id = room.ChannelId, Type = ChannelType.Multiplayer, Name = $"#mp_{room.RoomID}" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user