Files
minstrel/android
bvandeusenandClaude Opus 5.5 1dff4b7ddb fix(android): a like, unlike, flag or unflag made while an older one is still queued can't be undone by it (#8079)
A toggle went live first and queued only on failure, and the replayer
collapses toggles only among queued rows. So a like queued offline, then an
unlike that reached the server live before the queue drained, ended with
the queued like replaying last: the user's last action lost. A refresh also
replaced the local set with the server's, dropping a queued toggle's state
until it replayed.

- When the queue holds a toggle for the same entity, the new one queues
  behind it (as NormalizationRepository already does); the replayer then
  sends the newest per entity. Quarantine flag and unflag do the same.
- refreshIds and the quarantine refresh keep what is still queued over the
  server's answer (MutationQueue.pendingLikeStates /
  pendingQuarantineStates).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:13:48 -05:00
..