Skip to content

fix(play): prevent duplicate correspondence challenge submissions#2817

Closed
zerox13 wants to merge 2 commits intolichess-org:mainfrom
zerox13:challenge_sheet_race_problem
Closed

fix(play): prevent duplicate correspondence challenge submissions#2817
zerox13 wants to merge 2 commits intolichess-org:mainfrom
zerox13:challenge_sheet_race_problem

Conversation

@zerox13
Copy link
Copy Markdown

@zerox13 zerox13 commented Mar 21, 2026

Fixes #2815

Improves correspondence challenge submission flow in create_challenge_bottom_sheet to make it safer and clearer for users.

  • Adds explicit in-flight state to prevent duplicate correspondence/unlimited challenge submissions.
  • Shows a loading indicator on the submit button while the challenge request is pending.
  • Hardens async UI handling by capturing l10n/root context before await and using consistent success/error snackbars after the sheet closes.

@veloce
Copy link
Copy Markdown
Contributor

veloce commented Mar 22, 2026

Closing as there was a much simpler fix: 4bb7ef7

@veloce veloce closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The challenge panel doesn't dismiss after the button was pressed

2 participants