1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

Fix users blipping online briefly before their online status is known

This commit is contained in:
Bartłomiej Dach 2024-01-02 14:07:59 +01:00
parent d4e917448d
commit 09b2a4e3b4
No known key found for this signature in database

View File

@ -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);