Don't exclude same source when checking for duplicate entries

Closes #8870

(cherry picked from commit a0f47d3f1b874c9b6d62dfc1679daa9398bf9b98)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/BrowseSourceScreenModel.kt
This commit is contained in:
arkon
2023-01-08 22:06:42 -05:00
committed by Jobobby04
parent c9bc4646da
commit 8087c25559
11 changed files with 10 additions and 30 deletions
@@ -55,9 +55,9 @@ class MangaRepositoryImpl(
return handler.subscribeToList { mangasQueries.getFavoriteBySourceId(sourceId, mangaMapper) }
}
override suspend fun getDuplicateLibraryManga(title: String, sourceId: Long): Manga? {
override suspend fun getDuplicateLibraryManga(title: String): Manga? {
return handler.awaitOneOrNull {
mangasQueries.getDuplicateLibraryManga(title, sourceId, mangaMapper)
mangasQueries.getDuplicateLibraryManga(title, mangaMapper)
}
}