Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix follow request count to dynamically update #16652

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

matildepark
Copy link
Contributor

When we get an incoming follow request, we get notified for it over the streaming API, but we don't actually update state. This means that the follow requests button is static — it requires a refresh to show the updated count. Since many people leave their session open for long periods, this results in a less-than-ideal user experience. This patches the notification dispatch to grab the follow request count when we get a new request notification, updating state and UI.

Fixes #16178

@Gargron Gargron merged commit 79341d0 into mastodon:main Aug 25, 2021
@matildepark matildepark deleted the mp/fetch-reqs-on-notif branch August 25, 2021 16:16
jesseplusplus pushed a commit to jesseplusplus/decodon that referenced this pull request Feb 10, 2022
ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this pull request Jul 6, 2023
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.

Make "Follow Requests" button always visible in single column mode
2 participants