Files
amethyst/desktopApp
Claude d7ca63008a refactor(chess): one shared ChessViewModel for Android and Desktop
ChessViewModelNew (Android) and DesktopChessViewModelNew forwarded the
same ~40 members to ChessLobbyLogic; only the adapters and the scope
differed. commons/nip64Chess/ChessViewModel now takes the adapters, the
polling config, the dismissed-games store and an optional scope.

- Android: ChessViewModelFactory builds it with the Android adapters and
  no scope, so it runs on viewModelScope and stops polling in onCleared,
  as before. The factory's unused Application parameter is gone.
- Desktop: ChessScreen builds it with the Desktop adapters and its
  rememberCoroutineScope(); the UserMetadataCache the old class owned is
  remembered beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BkG4KTqmnprUK9BAcwAyc8
2026-09-27 03:27:57 +00:00
..