mirror of https://github.com/ppy/osu
Update status and count immediately after friend request completes
This commit is contained in:
parent
e064965281
commit
0087270b7e
|
@ -95,10 +95,12 @@ private void load(IAPIProvider api, INotificationOverlay? notifications)
|
|||
|
||||
req.Success += () =>
|
||||
{
|
||||
followerCount += status.Value == FriendStatus.None ? 1 : -1;
|
||||
bool becameFriend = status.Value == FriendStatus.None;
|
||||
|
||||
SetValue(followerCount += becameFriend ? 1 : -1);
|
||||
status.Value = becameFriend ? FriendStatus.NotMutual : FriendStatus.None;
|
||||
|
||||
api.UpdateLocalFriends();
|
||||
updateStatus();
|
||||
HideLoadingLayer();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue