Skip to content

Comments

Release 0.71.1#12499

Merged
sampaiodiego merged 2 commits intomasterfrom
release-0.71.1
Oct 31, 2018
Merged

Release 0.71.1#12499
sampaiodiego merged 2 commits intomasterfrom
release-0.71.1

Conversation

@sampaiodiego
Copy link
Member

2018-10-31 · 1 🐛 · 1 👩‍💻👨‍💻

Engine versions

  • Node: 8.11.3
  • NPM: 5.6.0

🐛 Bug fixes

  • Email sending with GDPR user data (#12487)

👩‍💻👨‍💻 Core Team 🤓

const userData = RocketChat.models.Users.findOneById(userId);

if (!userData || userData.emails || userData.emails[0] || userData.emails[0].address) {
if (!userData || !userData.emails || !userData.emails[0] || !userData.emails[0].address) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can improve the logic here, by looping into the emails and getting the first verified maybe? And if there's no email verified, get the first one. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree this could be improved.. but not on this PR.. this is just merging the fix for the release.

@sampaiodiego sampaiodiego merged commit e73dc78 into master Oct 31, 2018
@sampaiodiego sampaiodiego deleted the release-0.71.1 branch October 31, 2018 14:40
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.

4 participants