Fix last seen message has been visible when it shouldn't

This commit is contained in:
Andrei Zavatski 2020-03-25 21:02:45 +03:00
parent 1e025b7c31
commit 454e402e88

View File

@ -185,6 +185,8 @@ namespace osu.Game.Users
{ {
if (status != null) if (status != null)
{ {
LastVisitMessage.FadeTo(status is UserStatusOffline && User.LastVisit.HasValue ? 1 : 0);
// Set status message based on activity (if we have one) and status is not offline // Set status message based on activity (if we have one) and status is not offline
if (activity != null && !(status is UserStatusOffline)) if (activity != null && !(status is UserStatusOffline))
{ {
@ -194,7 +196,6 @@ namespace osu.Game.Users
} }
// Otherwise use only status // Otherwise use only status
LastVisitMessage.FadeTo(status is UserStatusOffline && User.LastVisit.HasValue ? 1 : 0);
statusMessage.Text = status.Message; statusMessage.Text = status.Message;
statusIcon.FadeColour(status.GetAppropriateColour(colours), 500, Easing.OutQuint); statusIcon.FadeColour(status.GetAppropriateColour(colours), 500, Easing.OutQuint);