Skip to content

Commit

Permalink
Update status and count immediately after friend request completes
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Nov 5, 2024
1 parent e064965 commit 0087270
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down

0 comments on commit 0087270

Please sign in to comment.