mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
ignore case when search for already joined channel
This commit is contained in:
@ -265,7 +265,8 @@ namespace osu.Game.Online.Chat
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the user has joined requested channel already.
|
// 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)
|
if (alreadyJoinedChannel != null)
|
||||||
CurrentChannel.Value = alreadyJoinedChannel;
|
CurrentChannel.Value = alreadyJoinedChannel;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user