Skip to content

Show moderation rejection messages in the chat UI - #1746

Merged
kevmo314 merged 1 commit into
mainfrom
fix/moderation-error-toasts
Oct 29, 2026
Merged

kevmo314 merged 1 commit into
mainfrom
fix/moderation-error-toasts

Conversation

@kevmo314

Copy link
Copy Markdown
Contributor

Chat moderation requests were started without awaiting or catching failures, so backend rejections—including the failed-precondition responses added in #1745—never reached the user.

Await ban, unban, timeout, and delete requests for both Twitch and Kick, then display the callable error's message in a snackbar. Close dialogs before sending requests and retain the page's ScaffoldMessenger so delayed failures remain visible after the original message disappears; safely ignore results after the page is disposed. Cancelling either dialog makes no request.

Validation: all 586 Flutter tests pass; flutter analyze passes. Widget tests cover all four failed actions on both providers, delayed failures after message removal or page disposal, dialog cancellation, and successful account routing.

@kevmo314
kevmo314 merged commit b6b494c into main Oct 29, 2026
10 checks passed
@kevmo314
kevmo314 deleted the fix/moderation-error-toasts branch October 29, 2026 05:26

This branch was successfully deployed

2 active deployments
ios-testflight — 1b3c724a Deployed Oct 29, 2026 by kevmo314 via ios / ipa #1866
android-internal — 1b3c724a Deployed Oct 29, 2026 by kevmo314 via android / apkaab #1866
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.

1 participant