Skip to content
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

Show all global FFZ badges of a user #3818

Merged
merged 7 commits into from
Jun 27, 2022

Conversation

Jaxkey
Copy link
Contributor

@Jaxkey Jaxkey commented Jun 13, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

In Chatterino, a maximum of one global FFZ badge appears at a time.

Moobot has both the Bot & FFZ Supporter global FFZ Badges.
2
In Chatterino, the Bot badge is missing and only one FFZ badge appears.
1

Changed badgeMap to store a vector of ID's in its second position for each FFZ badge a user has (previously only stored a single ID).
Changed appendFfzBadges() to loop through each FFZ badge a user has.

Updated version:
3

To Reproduce

Have a user with multiple global FFZ badges send a chat message

@Jaxkey Jaxkey changed the title Show All Global FFZ Badges of a User Show all global FFZ badges of a user Jun 13, 2022
@Felanbird
Copy link
Collaborator

I'm not sure if this is the correct approach, the FFZ Bot badges we load in Chatterino are a relic of the past and purely appear because they are in the same API as supporter badges.
I'm wondering how this will effect any future implementation of #2241.

@pajlada
Copy link
Member

pajlada commented Jun 25, 2022

This doesn't really conflict with the transition to v2 since I don't think anyone is working on that right now, so I'm happy to merge this feature in. Will push a little commit cleaning up the code at the same time as I solve the merge conflict, then let @Jaxkey get the last review in

Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected 👍
Happy to merge upon your approval of my changes @Jaxkey

image

@Jaxkey
Copy link
Contributor Author

Jaxkey commented Jun 27, 2022

Looks good @pajlada. Merge it 👍

@Felanbird Felanbird enabled auto-merge (squash) June 27, 2022 18:18
@Felanbird Felanbird merged commit f49e8b4 into Chatterino:master Jun 27, 2022
@Jaxkey Jaxkey deleted the ffz-channel-bot-badge branch June 27, 2022 19:03
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.

None yet

3 participants