mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09: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:
@ -472,10 +472,10 @@ namespace osu.Game.Online.Chat
|
|||||||
closedChannels.RemoveAt(closedChannels.Count - 1);
|
closedChannels.RemoveAt(closedChannels.Count - 1);
|
||||||
|
|
||||||
// If the user has already joined the channel, try the next one
|
// 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;
|
continue;
|
||||||
|
|
||||||
Channel lastChannel = AvailableChannels.FirstOrDefault(lastClosedChannel.IsEqual);
|
Channel lastChannel = AvailableChannels.FirstOrDefault(lastClosedChannel.Matches);
|
||||||
|
|
||||||
if (lastChannel != null)
|
if (lastChannel != null)
|
||||||
{
|
{
|
||||||
@ -596,7 +596,7 @@ namespace osu.Game.Online.Chat
|
|||||||
Id = id;
|
Id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsEqual(Channel channel)
|
public bool Matches(Channel channel)
|
||||||
{
|
{
|
||||||
if (channel.Type != Type) return false;
|
if (channel.Type != Type) return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user