-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[NEW] Better Push and Email Notification logic #17357
Conversation
…users_and_rooms * 'develop' of github.com:RocketChat/Rocket.Chat: (29 commits) [FIX] 2FA not showing codes for Spanish translation (#17378) [NEW] [ENTERPRISE] Restrict the permissions configuration for guest users (#17333) [NEW] Federation event for when users left rooms (#17091) [FIX] CSV Importer fails when there are no users to import (#16790) Import slack's mpims as direct rooms instead of private groups (#17206) [FIX] SAML Idp Initiated Logout Error (#17324) [NEW] Better Push and Email Notification logic (#17357) [NEW] Error page when browser is not supported (#17372) [NEW] [ENTERPRISE] Omnichannel queue priorities (#17141) [IMPROVE] Change the SAML metadata order to conform to XSD specification (#15488) [IMPROVE] Filter markdown in notifications (#9995) [IMPROVE] User gets UI feedback when message is pinned or unpinned (#16056) Remove set as alias setting (#16343) [IMPROVE] Add `file-title` and `file-desc` as new filter tag options on message search (#16858) [NEW] Add ability to set tags in the Omnichannel room closing dialog (#17254) [FIX] Show active admin and user account menu item (#17047) [NEW] [ENTERPRISE] Allows to set a group of departments accepted for forwarding chats (#17335) [FIX] Prevent user from getting stuck on login, if there is some bad fname (#17331) [FIX] Remove properties from users.info response (#17238) Bump version to 3.1.1 ...
I think that PR could be a great fix for |
thanks @ankar84 .. I believe both issues can be closed now, what do you think? even the preference |
Sure! They both closed now. |
@rodrigok @sampaiodiego I'd like to confirm behavior or following scenario:
Since the status is now (known to be) offline, the best user experience means that push needs to be sent immediately, without waiting for the scheduled 120 seconds. Is that already the current behavior? My observation seems to imply that, even now the user is known to be offline, all scheduled messages will still be waiting until 120 seconds. If this is the current (undesirable) behavior, then I'll create a new ticket for this. |
Changelog Description
We are still using the same logic to define which notifications every new message will generate, it takes some servers' settings, users's preferences and subscriptions' settings in consideration to determine who will receive each notification type (desktop, audio, email and mobile push), but now it doesn't check the user's status (online, away, offline) for email and mobile push notifications but send those notifications to a new queue with the following rules:
Technical info
maxScheduleDelaySeconds = 120
cyclePause
,maxBatchSize
, andmaxScheduleDelaySeconds
configurablemaxScheduleDelaySeconds
timemaxScheduleDelaySeconds
- (now - lastUpdatedAt), 0)Notifications_Always_Notify_Mobile
andPush_Debug
_raix_push_notifications
collectionquery.userId
touserId
Future