Skip to content

fix: refresh friend request state immediately after add#113

Open
gabrielfordevelopment wants to merge 1 commit intostoatchat:devfrom
gabrielfordevelopment:fix/friend-request-immediate-refresh
Open

fix: refresh friend request state immediately after add#113
gabrielfordevelopment wants to merge 1 commit intostoatchat:devfrom
gabrielfordevelopment:fix/friend-request-immediate-refresh

Conversation

@gabrielfordevelopment
Copy link
Copy Markdown

closes #39

What changed

  • Moved the immediate relationship cache update to a single place in the API relationship flow.
  • Removed duplicated profile UI-side cache mutation.
  • Added a userId hint path for deterministic outgoing-state updates after a successful Add Friend call.

Currently we have this

After tapping Add Friend on a user profile, the button state did not update immediately, and the new request did not appear in the Outgoing list until the app was restarted.

friendreq_before.mp4

What I made have this

After a successful Add Friend action, relationship state now updates to Outgoing immediately, so both the profile button and the Outgoing requests list refresh right away without restarting the app.

friendreq_after.mp4

Signed-off-by: Gabriel <60961939+gabrielfordevelopment@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Friends screen doesn't update when creating a friend request

1 participant