Skip to content

Mark user active on channel point redemption#2542

Merged
ebiggz merged 3 commits intocrowbartools:v5from
codehdn:feature/channelPointsMarkUserActive
Jul 18, 2024
Merged

Mark user active on channel point redemption#2542
ebiggz merged 3 commits intocrowbartools:v5from
codehdn:feature/channelPointsMarkUserActive

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

@codehdn codehdn requested a review from ebiggz as a code owner May 2, 2024 18:33
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
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

Comments