Update lastPageRead on chapter update (#939)
Broken with 729385588a3d8e06ec8be38865a12c47e88f6bcb...
This commit is contained in:
@@ -79,7 +79,7 @@ class ChapterMutation {
|
|||||||
this[ChapterTable.isBookmarked] = it
|
this[ChapterTable.isBookmarked] = it
|
||||||
}
|
}
|
||||||
patch.lastPageRead?.also {
|
patch.lastPageRead?.also {
|
||||||
this[ChapterTable.lastPageRead] = it.coerceAtMost(chapterIdToPageCount[it] ?: 0).coerceAtLeast(0)
|
this[ChapterTable.lastPageRead] = it.coerceAtMost(chapterIdToPageCount[chapterId] ?: 0).coerceAtLeast(0)
|
||||||
this[ChapterTable.lastReadAt] = now
|
this[ChapterTable.lastReadAt] = now
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user