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

[Bug]: Forced reload on reestablished internet connection #1144

Open
farao opened this issue Sep 30, 2024 · 1 comment
Open

[Bug]: Forced reload on reestablished internet connection #1144

farao opened this issue Sep 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@farao
Copy link

farao commented Sep 30, 2024

Describe the bug

I've been using Tuba on mobile and there, sometimes the internet goes away for a while. This is not a problem since Tuba at least caches some posts and you can continue scrolling/reading. But when the internet gets reestablished, you can't continue scrolling but it reloads forcefully and drags you on top of your timeline.

My whish would be that you can just continue scrolling and whenever you want to load newer posts, you just do that manually (e.g. by going to the top of the timeline and dragging down).

Steps To Reproduce

  1. Turn off internet
  2. Scroll a bit
  3. Turn on internet

Instance Backend

Mastodon

Operating System

Furios trixie (based on Droidian)

Package

Flatpak

@farao farao added the bug Something isn't working label Sep 30, 2024
@GeopJr
Copy link
Owner

GeopJr commented Sep 30, 2024

Not sure :/

The main issue is that Tuba is unaware of what happened while offline. E.g. when someone edits a post, a websocket event gets emitted and Tuba updates the edited post accordingly. When you go offline, the websocket obviously disconnects, so you never receive any updates. When you go back offline, you will be missing them until you refresh.

That can lead to situations where someone might have posted misinformation and edited or even deleted their post but you might never learn about it because you will receive the updates when you refresh manually 🤷

If the disconnects are for a short period of time, I can maybe set up a check to only refresh if disconnected for over 1 minute or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants