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:
parent
a5f5bde2c0
commit
73590bfca1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user