getlantern / lantern-client

Lantern Client code
GNU General Public License v3.0
14 stars 3 forks source link

Fix issue updating user data over websocket #1055

Closed atavism closed 7 months ago

atavism commented 7 months ago

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: https://github.com/getlantern/lantern-client/blob/7163452b617d7a7384d2f050bfbf80cde38db3fb/lib/common/session_model.dart#L94

jigar-f commented 7 months ago

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

atavism commented 7 months ago

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

jigar-f commented 7 months ago

@atavism added all the changes.

atavism commented 7 months ago

LGTM!