Skip to content

fix(conversationlist): Retry conversation sync - #6611

Merged
mahibi merged 3 commits into
masterfrom
issue-6264-slow-internet-fetch
Sep 3, 2026
Merged

fix(conversationlist): Retry conversation sync #6611
mahibi merged 3 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
@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)

rapterjet2004 and others added 3 commits September 3, 2026 09:01
…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 <juliuslinus1@gmail.com>
…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 <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi
mahibi force-pushed the issue-6264-slow-internet-fetch branch from 620f12f to fef1491 Compare September 3, 2026 07:03
@mahibi mahibi added this to the 25.1.0 milestone Sep 3, 2026
@mahibi

mahibi commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

/backport to stable-25.0.x

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/33726231217/artifacts/9882508131
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)

@mahibi
mahibi merged commit e3b8317 into master Sep 3, 2026
14 of 20 checks passed
@mahibi
mahibi deleted the issue-6264-slow-internet-fetch branch September 3, 2026 07:26
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