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

Trigger recordMessageSent with type == 'channel' in a social (token gated) channel #2693

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

ratik21
Copy link
Collaborator

@ratik21 ratik21 commented Feb 24, 2025

What does this do?

Updates the sendMessage logic to also include the channel type (if it is a social channel or not). If yes, then we pass on this info to recordMessageSent fn, which calls the respective API to record that event.

This is done so that in the rewards calculation, we can filter out the users who have sent messages in social channels.

@ratik21 ratik21 requested a review from a team February 24, 2025 21:25
@ratik21 ratik21 merged commit 286bf44 into main Feb 26, 2025
5 checks passed
@ratik21 ratik21 deleted the send-social-message-type branch February 26, 2025 05:30
@ratik21 ratik21 changed the title Trigger recordMessageSent with type == 'social' in a social (token gated) channel Trigger recordMessageSent with type == 'channel' in a social (token gated) channel Feb 26, 2025
Copy link
Collaborator

@domw30 domw30 left a comment

Choose a reason for hiding this comment

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

All looks good to me!

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.

2 participants