fix(offline): delete a finished local game from the device, not the network #201
Reference in New Issue
Block a user
Delete Branch "feature/offline-delete-game"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Offline bug (contour): deleting a finished local game in the lobby toasted "something went wrong" and the game stayed.
The lobby's finished-game delete (
hide) always calledgateway.hideGame; for a local (offline) game the transport kill switch (#199) refuses it → toast + rollback. Route by id: a local game is removed from the device store + the source cache (LocalSource.delete); an online game still hides on the backend.Tests: unit (
LocalSource.deleteremoves from the list — 479), check (0), e2e (196, online hide unchanged), gate 112.8/113. Offline delete is contour-verified (the mock e2e can't enter offline).