mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Fix users blipping online briefly before their online status is known
This commit is contained in:
parent
d4e917448d
commit
09b2a4e3b4
@ -23,7 +23,6 @@ namespace osu.Game.Online.Metadata
|
||||
public override IBindable<bool> IsWatchingUserPresence => isWatchingUserPresence;
|
||||
private readonly BindableBool isWatchingUserPresence = new BindableBool();
|
||||
|
||||
// ReSharper disable once InconsistentlySynchronizedField
|
||||
public override IBindableDictionary<int, UserPresence> UserStates => userStates;
|
||||
private readonly BindableDictionary<int, UserPresence> userStates = new BindableDictionary<int, UserPresence>();
|
||||
|
||||
@ -192,7 +191,7 @@ namespace osu.Game.Online.Metadata
|
||||
{
|
||||
Schedule(() =>
|
||||
{
|
||||
if (presence != null)
|
||||
if (presence?.Status != null)
|
||||
userStates[userId] = presence.Value;
|
||||
else
|
||||
userStates.Remove(userId);
|
||||
|
Loading…
Reference in New Issue
Block a user