Skip to content

Commit

Permalink
Merge pull request #8317 from RocketChat/MartinSchoeler-patch-1
Browse files Browse the repository at this point in the history
[FIX] Email Subjects not being sent
  • Loading branch information
rodrigok committed Sep 29, 2017
1 parent b0c7fd0 commit 16ecc69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/lib/sendEmailOnMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ RocketChat.callbacks.add('afterSaveMessage', function(message, room) {
usersOfMention.forEach((user) => {
if (usersToSendEmail[user._id] === 'default') {
if (!user.settings || !user.settings.preferences || !user.settings.preferences.emailNotificationMode || user.settings.preferences.emailNotificationMode === 'all') { //Mention/DM
usersToSendEmail[user._id] === 'mention';
usersToSendEmail[user._id] = 'mention';
} else {
return;
}
Expand Down

0 comments on commit 16ecc69

Please sign in to comment.