MangaPresenter: Don't update fav state when changing categories (#7594)

This commit is contained in:
Ivan Iskandar 2022-07-24 09:18:40 +07:00 committed by GitHub
parent cd9487f94c
commit 59f8c1a288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -365,8 +365,10 @@ class MangaPresenter(
fun moveMangaToCategoriesAndAddToLibrary(manga: DomainManga, categories: List<Category>) { fun moveMangaToCategoriesAndAddToLibrary(manga: DomainManga, categories: List<Category>) {
moveMangaToCategories(categories) moveMangaToCategories(categories)
presenterScope.launchIO { if (!manga.favorite) {
updateManga.awaitUpdateFavorite(manga.id, true) presenterScope.launchIO {
updateManga.awaitUpdateFavorite(manga.id, true)
}
} }
} }