Skip to content

fix(reader): restore saved chapter progress from db if available - #1850

Merged
rajarsheechatterjee merged 1 commit into
lnreader:masterfrom
Jaky-gh:fix-reader-progress-restore
May 24, 2026
Merged

fix(reader): restore saved chapter progress from db if available#1850
rajarsheechatterjee merged 1 commit into
lnreader:masterfrom
Jaky-gh:fix-reader-progress-restore

Conversation

@Jaky-gh

@Jaky-gh Jaky-gh commented May 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #1468
Issue:
Reopening a partially read chapter could start from the beginning instead of restoring the saved progress. The reader WebView receives its initial progress from the chapter object passed through navigation, but that object can be stale and still contain progress: 0 even after the latest progress has been persisted.

Change:
Hydrates the initial reader chapter from the database before rendering, so reopening a partially read chapter restores saved progress instead of starting at 0%.

Manual testing:

  • Opened a chapter, read until partway through, returned to the chapter list, reopened the chapter, and confirmed it resumed at the saved position.
  • Opened a chapter, read until partway through, scrolled farther down, scrolled back up, returned, reopened the chapter, and confirmed it resumed at the most recently saved position.
  • Opened a chapter, read until partway through, closed the app, reopened it, opened the same chapter, and confirmed it resumed at the saved position.

Other checks:

  • Built release APK locally.
  • Ran ESLint on changed files.
  • Ran Prettier check on changed files.

@rajarsheechatterjee
rajarsheechatterjee merged commit 25c93af into lnreader:master May 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App not saving progress

2 participants