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
@@ -19,7 +19,7 @@ class GetManga(
}
}
suspend fun subscribe(id: Long): Flow<Manga> {
fun subscribe(id: Long): Flow<Manga> {
return mangaRepository.getMangaByIdAsFlow(id)
}
@@ -10,7 +10,7 @@ interface MangaRepository {
suspend fun getMangaById(id: Long): Manga
suspend fun getMangaByIdAsFlow(id: Long): Flow<Manga>
fun getMangaByIdAsFlow(id: Long): Flow<Manga>
suspend fun getMangaByUrlAndSourceId(url: String, sourceId: Long): Manga?