mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Make readonly instead
This commit is contained in:
parent
0be3ba946f
commit
4341d258af
@ -15,7 +15,7 @@ namespace osu.Game.Online.Chat
|
||||
Timestamp = DateTimeOffset.Now;
|
||||
Content = message;
|
||||
|
||||
Sender = User.SystemUser;
|
||||
Sender = User.SYSTEM_USER;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
public void ShowUser(User user, bool fetchOnline = true)
|
||||
{
|
||||
if (user == User.SystemUser) return;
|
||||
if (user == User.SYSTEM_USER) return;
|
||||
|
||||
Show();
|
||||
|
||||
|
@ -148,7 +148,7 @@ namespace osu.Game.Users
|
||||
/// <summary>
|
||||
/// A user instance for displaying locally created system messages.
|
||||
/// </summary>
|
||||
public static User SystemUser { get; } = new User
|
||||
public static readonly User SYSTEM_USER = new User
|
||||
{
|
||||
Username = "system",
|
||||
Id = 0
|
||||
|
Loading…
Reference in New Issue
Block a user