• Mahmoud Aglan's avatar
    fix: chess resign/draw sync — opponent now sees both actions · 7372dc29
    Mahmoud Aglan authored
    - match-live.js: always forward poll data to game (not only on move_count change)
      This was the root cause — resign/draw don't increment move_count, so the
      game never processed the status change or game_state update
    - game.php: all match operations now use supabaseService() to bypass RLS
      (handleGameMove, handleResign, handleComplete all failed silently with user token)
    - Add dedicated 'draw' action in game.php that atomically marks match completed
    - Draw acceptance now calls action:'draw' instead of writing game_state only
    - handleResign validates match isn't already completed (prevents double-resign)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    7372dc29
Name
Last commit
Last update
..
auth Loading commit data...
chess Loading commit data...
domino Loading commit data...
ludo Loading commit data...
org Loading commit data...
play Loading commit data...
profile Loading commit data...
puzzles Loading commit data...
rank Loading commit data...
rewards Loading commit data...
shop Loading commit data...
social Loading commit data...
tournaments Loading commit data...