mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08: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