Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent last page read to be greater than max page count (#655)
There were cases where the last page read was greater than the max page count of a chapter. This is not possible and is just invalid data, that is saved in the database, possible leading to other errors down the line. This could happen in case the chapter was loaded at some point with e.g. 18 pages and after some time got fetched again from the source, now with fewer pages than before e.g. 15. If the chapters last page was already read by that time, the last read page would have been 18, while the chapter now has only 15 pages.
- Loading branch information