Fix double tapping History not working consistently

Fixes #8875
This commit is contained in:
arkon 2023-01-09 22:50:11 -05:00
parent 6263817bb4
commit 46774771ec

View File

@ -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())
}
}