Filter out blocked scanlators from updates section

This commit is contained in:
Jays2Kings 2023-03-02 22:42:43 -05:00
parent 66f77aafc0
commit bbef22536c

View file

@ -198,7 +198,11 @@ class RecentsPresenter(
}
.mapNotNull { entry ->
val manga = entry.value.first().manga
val chapters = entry.value.map(MangaChapter::chapter)
val chapters = chapterFilter.filterChaptersByScanlators(
entry.value.map(MangaChapter::chapter),
manga,
)
if (chapters.isEmpty()) { return@mapNotNull null }
val firstChapter: Chapter
var sortedChapters: MutableList<Chapter>
val existingItem = recentItems.find {