Skip to content

Conversation

francislavoie
Copy link

@francislavoie francislavoie commented May 9, 2025

Closes #386 and #194

Forgive me, I've not tested this at all, I'm not a mobile developer so I don't have the dev environment set up for it. (I'm willing to help test if you're able to send me an Android .apk though!)

I've been using Frosty for quite a while now, and I love it. But I've really been missing the lack of moderation actions when I use it. I figured I'd take a shot at implementing it.

I have zero Dart experience, so I heavily used Github Copilot to write the necessary changes.

I've reviewed the Twitch Helix API docs to make sure the API usage makes sense.

I assume users would need to log out and back in to get the new scopes to actually be able to get the moderation actions. I think getModeratedChannels() should probably return an empty list (to safely just hide the moderation actions if the scope isn't given) instead of throwing an error, but an error message should probably still be logged. I don't know the best way to handle that, so I'll leave that up to you.

While I was at it, a minor bug that's been annoying me is long-pressing on a message (which I do typically to reply to someone), it would often miss if someone else types at the same time, and the long-press menu chooses the user that's under the tap after scrolling. So to fix this, we can use GestureDetector to pause scrolling while long pressing (and unpause at end of longpress/cancel if was autoscrolling before starting the longpress). This changes from an InkWell to a GestureDetector with an InkWell child which might have side effects (again, entirely untested!) so that needs to be tested. The child InkWell should retain the ripple effect behaviour as before. 🤞

Copy link

vercel bot commented May 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
frostyapp ⬜️ Ignored (Inspect) Visit Preview Jun 21, 2025 7:28am

@francislavoie
Copy link
Author

@tommyxchow any interest in this? 🤔

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.

Moderation Options
1 participant