fix(chapter): Read state is not saved

This commit is contained in:
Ahmad Ansori Palembani 2024-11-23 20:35:57 +07:00
parent 00b7ac6c25
commit 6e76ab125e
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -457,6 +457,7 @@ class ReaderViewModel(
updateChapter.await(
ChapterUpdate(
id = chapter.id!!,
read = chapter.read,
bookmark = chapter.bookmark,
lastPageRead = chapter.last_page_read.toLong(),
pagesLeft = chapter.pages_left.toLong(),
@ -644,6 +645,7 @@ class ReaderViewModel(
updateChapter.await(
ChapterUpdate(
id = readerChapter.chapter.id!!,
read = readerChapter.chapter.read,
bookmark = readerChapter.chapter.bookmark,
lastPageRead = readerChapter.chapter.last_page_read.toLong(),
pagesLeft = readerChapter.chapter.pages_left.toLong(),