Fix recents history not showing next chapter

This commit is contained in:
Jays2Kings 2021-04-07 02:47:50 -04:00
parent 02e483f853
commit 962877ff08

View File

@ -182,7 +182,7 @@ class RecentsPresenter(
}
val pairs = mangaList.mapNotNull {
val chapter = when {
viewType == VIEW_TYPE_ONLY_HISTORY -> it.chapter
viewType == VIEW_TYPE_ONLY_UPDATES -> it.chapter
it.chapter.read || it.chapter.id == null -> getNextChapter(it.manga)
?: if (showRead && it.chapter.id != null) it.chapter else null
it.history.id == null -> getFirstUpdatedChapter(it.manga, it.chapter)