Mark duplicated chapters as read

Should have been done with fd2946d1ae, but it only deleted downloads of duplicated chapters
This commit is contained in:
schroda
2024-04-27 02:17:53 +02:00
parent 3b276f9f58
commit 35b756e09c

View File

@@ -253,8 +253,12 @@ export function Reader() {
downloadAhead(); downloadAhead();
const chapterIds = settings.skipDupChapters
? Chapters.getIds(Chapters.addDuplicates([chapter], mangaChapters ?? [chapter]))
: [chapter.id];
requestManager requestManager
.updateChapters([chapter.id], { .updateChapters(chapterIds, {
...patch, ...patch,
chapterIdsToDelete: getChapterIdsToDelete(), chapterIdsToDelete: getChapterIdsToDelete(),
trackProgressMangaId: trackProgressMangaId: