Skip to content

fix(conversationlist): Retry conversation sync - #6611

Open
rapterjet2004 wants to merge 2 commits into
masterfrom
issue-6264-slow-internet-fetch
Open

fix(conversationlist): Retry conversation sync #6611
rapterjet2004 wants to merge 2 commits into
masterfrom
issue-6264-slow-internet-fetch

Conversation

@rapterjet2004

@rapterjet2004 rapterjet2004 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

fix(conversationlist): Retry conversation sync and surface fetch errors on slow networks

On a slow/unstable connection (e.g. GPRS), the room-list fetch can fail with a transient error like StreamResetException, which was silently swallowed. On first launch with an empty local cache this left the conversation list blank with no explanation and no way to recover short of restarting the app.

Retry the fetch a few times to ride out transient failures, and only when retries are exhausted and there is nothing cached locally to show, surface the error through the existing error-dialog UI so the user knows the sync failed.

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@rapterjet2004 rapterjet2004 self-assigned this Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/33525362576/artifacts/9810626068
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@rapterjet2004
rapterjet2004 requested a review from mahibi September 1, 2026 17:10
rapterjet2004 and others added 2 commits September 2, 2026 19:28
…rs on slow networks

On a slow/unstable connection (e.g. GPRS), the room-list fetch can fail
with a transient error like StreamResetException, which was silently
swallowed. On first launch with an empty local cache this left the
conversation list blank with no explanation and no way to recover
short of restarting the app.

Retry the fetch a few times to ride out transient failures, and only
when retries are exhausted and there is nothing cached locally to show,
surface the error through the existing error-dialog UI so the user
knows the sync failed.

Signed-off-by: rapterjet2004 <[email protected]>
…retries

Retrying immediately on a slow/unstable connection tends to hit the
same transient failure again right away. Wait between retry attempts,
backing off exponentially (1s, 2s, 4s, capped at 8s) instead of
retrying instantly.

Assisted-by: Claude Code:claude-sonnet-5

Signed-off-by: Marcel Hibbe <[email protected]>
@mahibi
mahibi force-pushed the issue-6264-slow-internet-fetch branch from 4976d71 to 620f12f Compare September 2, 2026 17:29

@mahibi mahibi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.
i added a commit for backoff handling.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/33661377644/artifacts/9859105980
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fetching conversations fails with slow internet

2 participants