-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[FIX] Notification not working for group mentions and not respecting ignored users #11024
Conversation
@@ -199,11 +199,15 @@ function sendAllNotifications(message, room) { | |||
[notificationField]: 'mentions', | |||
'u._id': { $in: mentionIdsWithoutGroups } | |||
}); | |||
} else if ((hasMentionToAll || hasMentionToHere) && !disableAllMessageNotifications) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like to make small tests before
} else if (!disableAllMessageNotifications && (hasMentionToAll || hasMentionToHere))
what do you think?
} | ||
|
||
const serverField = kind === 'email' ? 'emailNotificationMode' : `${ kind }Notifications`; | ||
const serverPreference = RocketChat.settings.get(`Accounts_Default_User_Preferences_${ serverField }`); | ||
if ((room.t === 'd' && serverPreference === 'mentions') || (serverPreference === 'all' && !disableAllMessageNotifications)) { | ||
if ((room.t === 'd' && serverPreference === 'mentions') || ((serverPreference === 'all' || hasMentionToAll || hasMentionToHere) && !disableAllMessageNotifications)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we really need room.t === 'd' && serverPreference === 'mentions'
or just room.t === 'd'
here? Because I think as we have serverPreference === 'all'
that I think take care of the problem :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we do.. because serverPreference
can be nothing
* develop: (215 commits) [FIX] Rooms list sorting by activity multiple re-renders and case sensitive sorting alphabetically (RocketChat#9959) [FIX] Notification not working for group mentions and not respecting ignored users (RocketChat#11024) fixed searchbar icon and text overlap (RocketChat#10294) [FIX] Link previews not being removed from messages after removed on editing (RocketChat#11063) avoid send presence without loggin Fix: Exception in metrics generation Update release template Update issue templates Update pt-BR.i18n.json LingoHub Update 🚀 update import capnp update build for Sandstorm, add dependence capnp. LingoHub Update 🚀 Fixing HTML on translation files Fixing HTML on translation files LingoHub Update 🚀 Fixing HTML on translation files Fixing HTML on translation files Fixing HTML on translation files LingoHub Update 🚀 ... # Conflicts: # .meteor/packages # README.md # client/startup/startup.js # package-lock.json # packages/rocketchat-error-handler/server/lib/RocketChat.ErrorHandler.js # packages/rocketchat-i18n/i18n/en.i18n.json # packages/rocketchat-i18n/i18n/vi-VN.i18n.json # packages/rocketchat-livechat/config.js # server/startup/initialData.js
* goalify: (217 commits) Add more scripts to reduce mannual interaction during server init [FIX] Rooms list sorting by activity multiple re-renders and case sensitive sorting alphabetically (RocketChat#9959) [FIX] Notification not working for group mentions and not respecting ignored users (RocketChat#11024) fixed searchbar icon and text overlap (RocketChat#10294) [FIX] Link previews not being removed from messages after removed on editing (RocketChat#11063) avoid send presence without loggin Fix: Exception in metrics generation Update release template Update issue templates Update pt-BR.i18n.json LingoHub Update 🚀 update import capnp update build for Sandstorm, add dependence capnp. LingoHub Update 🚀 Fixing HTML on translation files Fixing HTML on translation files LingoHub Update 🚀 Fixing HTML on translation files Fixing HTML on translation files Fixing HTML on translation files ...
Closes #11018