1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 08:22:56 +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 get
{ {
if (sender.Id == User.SYSTEM_USER.Id)
return Array.Empty<MenuItem>();
List<MenuItem> items = new List<MenuItem> List<MenuItem> items = new List<MenuItem>
{ {
new OsuMenuItem("View Profile", MenuItemType.Highlighted, Action) new OsuMenuItem("View Profile", MenuItemType.Highlighted, Action)