mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-08-05 20:59:39 +00:00
updateTrackChapterRead() only stamped startedReadingDate when chapterNumber == 1, but each call only updates lastChapterRead to the chapter being processed. When multiple chapters are marked read at once, processing order isn't guaranteed to reach chapter 1 last, and the leading guard (chapterNumber <= track.lastChapterRead) skips chapter 1 entirely once a later chapter has already been recorded. The result: startedReadingDate stayed at its unset sentinel (0), which trackers like MAL then serialized as 1970-01-01. Replace the `chapterNumber == 1` check with isFirstRead, captured as `(track.lastChapterRead ?? 0) == 0` before `lastChapterRead` is overwritten. This detects "first ever read for this track" independent of processing order or how chapter numbers are recognized, fixing bulk-select while leaving single-chapter reads unaffected. |
||
|---|---|---|
| .. | ||
| build_context_extensions.dart | ||
| chapter_extensions.dart | ||
| dom_extensions.dart | ||
| manga_extensions.dart | ||
| others.dart | ||
| stream.dart | ||
| string_extensions.dart | ||