mangayomi-mirror/lib/utils/extensions
NBA2K1 0ad28814a5 Fix tracker start date not set on bulk-read
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.
2026-07-29 01:13:13 +02:00
..
build_context_extensions.dart Remove isMobile and isDesktop Extension 2026-04-26 19:39:14 +02:00
chapter_extensions.dart Fix tracker start date not set on bulk-read 2026-07-29 01:13:13 +02:00
dom_extensions.dart remove unnecessary calls 2025-12-17 21:34:45 +01:00
manga_extensions.dart fix(library): unread badge respects the per-manga scanlator filter (#796) 2026-07-11 18:24:48 -07:00
others.dart fix: ensure headers are only fetched when context is mounted in UChapDataPreloadExtensions 2026-07-13 15:09:04 +01:00
stream.dart
string_extensions.dart fix(downloads): unstall anime downloads on sources that return URLs with query strings or HTTP 206 2026-05-09 19:10:35 -07:00