mirror of
https://github.com/ppy/osu
synced 2024-12-25 00:02:48 +00:00
use .Equals()
instead
This commit is contained in:
parent
564c72bf74
commit
812624a502
@ -240,7 +240,7 @@ namespace osu.Game.Overlays.Chat
|
||||
{
|
||||
get
|
||||
{
|
||||
if (sender == User.SYSTEM_USER)
|
||||
if (sender.Equals(User.SYSTEM_USER))
|
||||
return Array.Empty<MenuItem>();
|
||||
|
||||
List<MenuItem> items = new List<MenuItem>
|
||||
@ -248,7 +248,7 @@ namespace osu.Game.Overlays.Chat
|
||||
new OsuMenuItem("View Profile", MenuItemType.Highlighted, Action)
|
||||
};
|
||||
|
||||
if (sender.Id != api.LocalUser.Value.Id)
|
||||
if (!sender.Equals(api.LocalUser.Value))
|
||||
items.Add(new OsuMenuItem("Start Chat", MenuItemType.Standard, startChatAction));
|
||||
|
||||
return items.ToArray();
|
||||
|
Loading…
Reference in New Issue
Block a user