Fix crash on History tab when there is no next chapter (#6970)

This commit is contained in:
Andreas 2022-04-21 22:48:45 +02:00 committed by GitHub
parent b1f46ed830
commit a35995b898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,9 +95,11 @@ class HistoryPresenter(
fun getNextChapterForManga(mangaId: Long, chapterId: Long) {
presenterScope.launchIO {
val chapter = getNextChapterForManga.await(mangaId, chapterId)
launchUI {
view?.openChapter(chapter)
}
}
}
fun deleteAllHistory() {
presenterScope.launchIO {