Properly check if chapter should be deleted after reading it

In case the current chapter should get deleted after reading it, it only worked in case it was already marked as read due to checking the read status from the chapter itself instead of the chapter update patch input
This commit is contained in:
schroda
2025-01-16 14:19:18 +01:00
parent 92f64ef009
commit 9255386b1c

View File

@@ -78,8 +78,7 @@ export const getChapterIdsToDeleteForChapterUpdate = (
} }
const shouldDeleteChapter = const shouldDeleteChapter =
chapterToDeleteUpToDateData.isRead && patch.isRead && Chapters.isDeletable(chapterToDeleteUpToDateData, deleteChaptersWithBookmark);
Chapters.isDeletable(chapterToDeleteUpToDateData, deleteChaptersWithBookmark);
if (!shouldDeleteChapter) { if (!shouldDeleteChapter) {
return []; return [];
} }