mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 12:27:26 +08:00
Update status and count immediately after friend request completes
This commit is contained in:
parent
e064965281
commit
0087270b7e
@ -95,10 +95,12 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
|
||||
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
Block a user