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

Mark user active on channel point redemption #2542

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

codehdn
Copy link
Contributor

@codehdn codehdn commented May 2, 2024

Description of the Change

Marks a user active on channel point redemption. Updates RewardRedemptionMetadata type to include userId and userDisplayName, these then get checked on the triggerChannelReward method to make sure theyre truthy, if theyre not it is assumed the streamer triggered the use of the channel reward and as such doesnt mark the user active.

Applicable Issues

#2537

Testing

  • I dont have a affiliate twitch account at this time so I have not personally tested this change

  • For testing I would setup a channel reward

  • have a user join chat and wait for it to become inactive

  • have that same user redeem a channel reward and verify they become active

  • also need to test for when a user is not in the chat user list yet (CKY mentioned possible weirdness here)

  • Need to test what happens when the redemption gets put into an effect queue, does it still mark user active or does it assume the streamer sent it in

Per CKY testing in the discord:

" this change is working as advertised.
there was a flutter when a user who was not in the list appeared after using a redeem
i would say PR it and let the core team have a look"

Screenshots

None

Copy link
Member

@ebiggz ebiggz left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the contribution!

@ebiggz ebiggz enabled auto-merge (squash) July 18, 2024 00:49
@ebiggz ebiggz merged commit ea04f5e into crowbartools:v5 Jul 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants