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

Email unsubscription bugfix #1868

Merged
merged 2 commits into from
Oct 22, 2018
Merged

Email unsubscription bugfix #1868

merged 2 commits into from
Oct 22, 2018

Conversation

pschoenfelder
Copy link
Contributor

@pschoenfelder pschoenfelder commented Oct 19, 2018

@@ -742,7 +742,7 @@ private void queueMail(final Collection<SingularityEmailDestination> destination
ccList.removeAll(emailBlacklist);

if (actionTaker.isPresent() && !Strings.isNullOrEmpty(actionTaker.get())) {
if (destination.contains(SingularityEmailDestination.ACTION_TAKER)) {
if (destination.contains(SingularityEmailDestination.ACTION_TAKER) && !emailBlacklist.contains(actionTaker.get())) {
Copy link
Member

@ssalinas ssalinas Oct 19, 2018

Choose a reason for hiding this comment

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

why not just move the removeAll after the action taker block?

@ssalinas
Copy link
Member

🚢

@ssalinas ssalinas merged commit c675ffb into master Oct 22, 2018
@ssalinas ssalinas deleted the email-unsub-fix branch October 22, 2018 14:04
@ssalinas ssalinas added this to the 0.22.0 milestone Nov 6, 2018
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