diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt index f08d5dbd8..2c1129548 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/history/HistoryTab.kt @@ -28,7 +28,7 @@ import eu.kanade.tachiyomi.ui.manga.MangaScreen import eu.kanade.tachiyomi.ui.reader.ReaderActivity import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.flow.collectLatest -import kotlinx.coroutines.flow.consumeAsFlow +import kotlinx.coroutines.flow.receiveAsFlow object HistoryTab : Tab { @@ -110,7 +110,7 @@ object HistoryTab : Tab { } LaunchedEffect(Unit) { - resumeLastChapterReadEvent.consumeAsFlow().collectLatest { + resumeLastChapterReadEvent.receiveAsFlow().collectLatest { openChapter(context, screenModel.getNextChapter()) } }