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

(cherry picked from commit 59f8c1a2880b1d35e870ea0bca2bc7a9cfc48592)
This commit is contained in:
Ivan Iskandar 2022-07-24 09:18:40 +07:00 committed by Jobobby04
parent 22b627ea8d
commit 1839eb13d9

View File

@ -765,10 +765,12 @@ class MangaPresenter(
fun moveMangaToCategoriesAndAddToLibrary(manga: DomainManga, categories: List<Category>) {
moveMangaToCategories(categories)
if (!manga.favorite) {
presenterScope.launchIO {
updateManga.awaitUpdateFavorite(manga.id, true)
}
}
}
/**
* Move the given manga to categories.