mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Return an empty array when the sender is from system.
This commit is contained in:
parent
a5f5bde2c0
commit
73590bfca1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user