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

Don't make follow requests based on the check follow response #1906

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Aug 23, 2020

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Don't make follow requests based on the check follow response.
This is done by deliberately setting and reading the enabled state of
the widget whenever the stateChanged event happens.

If the stateChanged event happens while the widget is not enabled, we
know the event must have been triggered by our "check user follow state"
event, and then we don't act upon that event

This is done by deliberately setting and reading the enabled state of
the widget whenever the stateChanged event happens.

If the stateChanged event happens while the widget is not enabled, we
know the event must have been triggered by our "check user follow state"
event, and then we don't act upon that event
@pajlada pajlada marked this pull request as ready for review August 23, 2020 10:45
@pajlada pajlada requested a review from fourtf August 23, 2020 10:45
@pajlada pajlada merged commit c7a2f4c into master Sep 6, 2020
@pajlada pajlada deleted the fix/dont-make-follow-network-request-from-checking-follow-state branch September 6, 2020 10:46
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.

None yet

2 participants