mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-15 15:49:42 +02:00
@@ -510,6 +510,12 @@ class ReaderViewModel(
|
|||||||
readerChapter.requestedPage = pageIndex
|
readerChapter.requestedPage = pageIndex
|
||||||
readerChapter.chapter.last_page_read = pageIndex
|
readerChapter.chapter.last_page_read = pageIndex
|
||||||
|
|
||||||
|
if (readerChapter.pages?.lastIndex == pageIndex) {
|
||||||
|
readerChapter.chapter.read = true
|
||||||
|
updateTrackChapterRead(readerChapter)
|
||||||
|
deleteChapterIfNeeded(readerChapter)
|
||||||
|
}
|
||||||
|
|
||||||
updateChapter.await(
|
updateChapter.await(
|
||||||
ChapterUpdate(
|
ChapterUpdate(
|
||||||
id = readerChapter.chapter.id!!,
|
id = readerChapter.chapter.id!!,
|
||||||
@@ -518,12 +524,6 @@ class ReaderViewModel(
|
|||||||
lastPageRead = readerChapter.chapter.last_page_read.toLong(),
|
lastPageRead = readerChapter.chapter.last_page_read.toLong(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
if (readerChapter.pages?.lastIndex == pageIndex) {
|
|
||||||
readerChapter.chapter.read = true
|
|
||||||
updateTrackChapterRead(readerChapter)
|
|
||||||
deleteChapterIfNeeded(readerChapter)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user