mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
ignore case when search for already joined channel
This commit is contained in:
parent
be9540e535
commit
b1c89f7618
@ -265,7 +265,8 @@ namespace osu.Game.Online.Chat
|
||||
}
|
||||
|
||||
// Check if the user has joined requested channel already.
|
||||
var alreadyJoinedChannel = JoinedChannels.FirstOrDefault(c => c.Type == ChannelType.PM && c.Users.Count == 1 && c.Name == content);
|
||||
var alreadyJoinedChannel = JoinedChannels.FirstOrDefault(
|
||||
c => c.Type == ChannelType.PM && c.Users.Count == 1 && c.Name.Equals(content, StringComparison.OrdinalIgnoreCase));
|
||||
if (alreadyJoinedChannel != null)
|
||||
CurrentChannel.Value = alreadyJoinedChannel;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user