Fix Mark previous as read (#7396)
(cherry picked from commit 7440086ef1bd63d499945afe1722d6648ab514ac)
This commit is contained in:
parent
257001d4a6
commit
58ed2b9752
1 changed files with 1 additions and 1 deletions
|
|
@ -887,7 +887,7 @@ class MangaPresenter(
|
|||
|
||||
fun markPreviousChapterRead(pointer: DomainChapter) {
|
||||
val successState = successState ?: return
|
||||
val chapters = successState.chapters.map { it.chapter }
|
||||
val chapters = processedChapters.orEmpty().map { it.chapter }.toList()
|
||||
val prevChapters = if (successState.manga.sortDescending()) chapters.asReversed() else chapters
|
||||
val pointerPos = prevChapters.indexOf(pointer)
|
||||
if (pointerPos != -1) markChaptersRead(prevChapters.take(pointerPos), true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue