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

feat: ignore duplicate email addresses when serializing the message #991

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

childish-sambino
Copy link
Contributor

Fixes #691
Closes #939
Closes #739

Copy link
Contributor

@aevitas aevitas left a comment

Choose a reason for hiding this comment

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

LGTM. Interesting approach, wouldn't directly have considered using a JsonSerializer to deduplicate them, but I suppose it's the best way to do it without adding too much code.

@childish-sambino
Copy link
Contributor Author

Yeah, first thought was to switch the emails to be stored in a hash set, but would cause some breakages depending on use. This is probably the least breaking, simplest approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: code review request requesting a community code review or review from Twilio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No email is sent when recipient email is duplicated
4 participants