Don't show button on self

This commit is contained in:
Dean Herbert
2021-08-11 17:39:23 +09:00
parent 50bda6023c
commit bb51ebd0ef
2 changed files with 5 additions and 5 deletions

View File

@ -184,7 +184,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
{
base.OnRoomUpdated();
if (Room == null)
if (Room == null || Client.LocalUser == null)
return;
const double fade_time = 50;
@ -196,7 +196,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
userStateDisplay.UpdateStatus(User.State, User.BeatmapAvailability);
if (Client.LocalUser != null && Room.Host?.Equals(Client.LocalUser) == true)
if (Client.IsHost && !User.Equals(Client.LocalUser))
kickButton.FadeIn(fade_time);
else
kickButton.FadeOut(fade_time);