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 issue updating user data over websocket #1055

Merged
merged 5 commits into from
Apr 26, 2024

Conversation

atavism
Copy link
Contributor

@atavism atavism commented Apr 25, 2024

In the old Pro client, whenever we fetch user data, it is stored afterwards in a local cache. Whenever that cache changes, the updates are sent over the websocket channel: https://github.com/getlantern/flashlight/blob/main/pro/user_data.go#L154

It looks this was left out of the new Pro client, and we were no longer receiving user data updates in real-time:

websocket.messageStream.listen(

@jigar-f
Copy link
Contributor

jigar-f commented Apr 25, 2024

@atavism Do you mind taking a look at the new changes?

desktop/lib.go Show resolved Hide resolved
lib/plans/checkout.dart Outdated Show resolved Hide resolved
@atavism
Copy link
Contributor Author

atavism commented Apr 26, 2024

@jigar-f Your changes LGTM! Just have that one comment.

@jigar-f
Copy link
Contributor

jigar-f commented Apr 26, 2024

@atavism added all the changes.

@atavism
Copy link
Contributor Author

atavism commented Apr 26, 2024

LGTM!

@atavism atavism merged commit f120116 into main Apr 26, 2024
2 checks passed
@atavism atavism deleted the atavism/user-data-local-cache branch April 26, 2024 16:21
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.

2 participants