1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Return an empty array when the sender is from system.

This commit is contained in:
Nathan Alo 2021-06-24 07:20:31 +08:00
parent a5f5bde2c0
commit 73590bfca1

View File

@ -240,6 +240,9 @@ namespace osu.Game.Overlays.Chat
{
get
{
if (sender.Id == User.SYSTEM_USER.Id)
return Array.Empty<MenuItem>();
List<MenuItem> items = new List<MenuItem>
{
new OsuMenuItem("View Profile", MenuItemType.Highlighted, Action)