Fix Mark previous as read
(#7396)
This commit is contained in:
parent
ef3acb8c43
commit
7440086ef1
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,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)
|
||||
|
|
Reference in a new issue