use .Equals() instead

This commit is contained in:
Nathan Alo 2021-06-24 10:45:20 +08:00
parent 564c72bf74
commit 812624a502

View File

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