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>