1
0
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:
Davran Dilshat 2021-09-07 17:22:59 +01:00
parent be9540e535
commit b1c89f7618

View File

@ -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;