mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +08:00
Rename method to be less misleading
Would rather avoid variations of Equals/Equal/IsEqual. There's not really much equality involved as the types are different.
This commit is contained in:
parent
e8c2483f19
commit
b2cc2a51ec
@ -472,10 +472,10 @@ namespace osu.Game.Online.Chat
|
||||
closedChannels.RemoveAt(closedChannels.Count - 1);
|
||||
|
||||
// If the user has already joined the channel, try the next one
|
||||
if (joinedChannels.FirstOrDefault(lastClosedChannel.IsEqual) != null)
|
||||
if (joinedChannels.FirstOrDefault(lastClosedChannel.Matches) != null)
|
||||
continue;
|
||||
|
||||
Channel lastChannel = AvailableChannels.FirstOrDefault(lastClosedChannel.IsEqual);
|
||||
Channel lastChannel = AvailableChannels.FirstOrDefault(lastClosedChannel.Matches);
|
||||
|
||||
if (lastChannel != null)
|
||||
{
|
||||
@ -596,7 +596,7 @@ namespace osu.Game.Online.Chat
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public bool IsEqual(Channel channel)
|
||||
public bool Matches(Channel channel)
|
||||
{
|
||||
if (channel.Type != Type) return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user