Make MangaCoverViewModel collect manga only while subscribed (#3716)

Assisted-by: Claude:claude-opus-5
This commit is contained in:
AntsyLich
2026-08-08 11:57:55 +06:00
committed by GitHub
parent ed274e26fd
commit 0834884335
5 changed files with 16 additions and 15 deletions
@@ -33,7 +33,7 @@ class MangaRepositoryImpl(
.awaitAsOne()
}
override suspend fun getMangaByIdAsFlow(id: Long): Flow<Manga> {
override fun getMangaByIdAsFlow(id: Long): Flow<Manga> {
return database.mangasQueries
.getMangaById(id, MangaMapper::mapManga)
.subscribeToOne()