Do not try to join the Add-channel button

This commit is contained in:
Paul Teng
2019-05-11 19:13:48 -04:00
committed by GitHub
parent ad93eda399
commit 6cf1ca288f

View File

@ -84,7 +84,11 @@ namespace osu.Game.Online.Chat
?? new Channel(user);
}
private void currentChannelChanged(ValueChangedEvent<Channel> e) => JoinChannel(e.NewValue);
private void currentChannelChanged(ValueChangedEvent<Channel> e)
{
if (e.NewValue?.Name != "+")
JoinChannel(e.NewValue);
}
/// <summary>
/// Ensure we run post actions in sequence, once at a time.