-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Show FrankerFaceZ channel badges #5119
Conversation
d49cb52
to
7bf36f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
Useful for various boost containers we might use in the upcoming commits (subscribe and see!)
This currently only supports bot badges, but could theoretically support other badges.
channel-specific ffz badges
e62ff2f
to
331416e
Compare
@pajlada Tested on macOS and it looks good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already make the request, so this just parses more of the payload.
One thing of note, for the API parsing: FrankerFaceZ gives us Twitch User IDs as integers, while we always treat them as strings. For this, I've made sure to handle a potential change in the API if they change to strings.
For thread safety, I've added a thread guard which will assert in debug mode if the channel badge map is accessed or written to in different threads. On Arch Linux with Qt 6.6.3 this works as expected. This should be tested on macOS & Windows builds.
Fixes #2241