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

Refresh doesent refresh #271

Closed
kirkawolff opened this issue Feb 7, 2023 · 3 comments
Closed

Refresh doesent refresh #271

kirkawolff opened this issue Feb 7, 2023 · 3 comments
Labels
bug Something isn't working javascript Pull requests that update Javascript code ready to release

Comments

@kirkawolff
Copy link

kirkawolff commented Feb 7, 2023

Nostros does not pull latest posts after initial pull. To reproduce: open app, look at "my feed", switch to another app, several hours later switch back to nostros. The feed will not refresh automatically and will not respond to 'pull down' refresh. If you switch to global feed, then back to personal feed, then it seems to reconnect and pull latest posts. It also works to go to hamburger menu, select 'about' then go back to personal feed. This behavior is consistent across about the past dozen versions.

@KoalaSat KoalaSat added bug Something isn't working javascript Pull requests that update Javascript code labels Feb 7, 2023
@KoalaSat
Copy link
Owner

KoalaSat commented Feb 7, 2023

Dev notes;

  1. relaypool stores the latest subscription
  2. The connection is lost on the websocket after timeout
  3. The user pulls to refresh and resend the same subscription request
  4. The relaypool detects the same connection and blocks it from sending it to Java, where the reconnection happens

We need to find a trigger that detects when the app is back from background and clean up all active connections on the relaypoll

@KoalaSat
Copy link
Owner

KoalaSat commented Feb 9, 2023

Will be fixed with the next release

@KoalaSat
Copy link
Owner

KoalaSat commented Feb 9, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code ready to release
Projects
None yet
Development

No branches or pull requests

2 participants