1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:43:19 +08:00

add comment

This commit is contained in:
rednir 2021-09-12 08:50:53 +01:00 committed by GitHub
parent eeaa8a8380
commit e511c2ef2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,8 @@ namespace osu.Game.Online.Chat
break;
}
// Check if the user has joined requested channel already.
// Check if the user has joined the requested channel already.
// This uses the channel name for comparison as the PM user's username is unavailable after a restart.
var privateChannel = JoinedChannels.FirstOrDefault(
c => c.Type == ChannelType.PM && c.Users.Count == 1 && c.Name.Equals(content, StringComparison.OrdinalIgnoreCase));