-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
More improvements on send notifications logic #10736
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b6c9dbb
Denormalize the User’s Highlights
rodrigok 041ef24
Find subscriptions for each type of notification
sampaiodiego 83dd50d
Change email preference values
rodrigok b24c7f3
General improvements
sampaiodiego f45f547
Merge branch 'denormalize-highlights' of github.com:RocketChat/Rocket…
sampaiodiego f9e7c65
Use just one query to get all subscriptions to notify
rodrigok 6930199
Get hightlights from subscriptions on method notifyUsersOnMessage
rodrigok 90e3d3d
Keep compatibility of emailNotifications preference in subscription save
rodrigok a0d18ab
Prevent group mentions on large rooms
sampaiodiego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* globals emojione */ | ||
Meteor.startup(function() { | ||
RocketChat.callbacks.add('beforeNotifyUser', (message) => { | ||
RocketChat.callbacks.add('beforeSendMessageNotifications', (message) => { | ||
return emojione.shortnameToUnicode(message); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 12 additions & 32 deletions
44
packages/rocketchat-lib/server/functions/notifications/desktop.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
But sometimes we do need '
all'
, not just'mentions'
. People should be able to get notifications when they are not on-line, even when they are not mentioned. For example, people who don't have RocketChat client, and we want to use e-mail as notifications, for important channelsThere 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.
It would be so great to have email notifications for
all
messages due to push-notifications issues on some rocket.chat instances, like on wechange.de. With this I could create a mail-filter and forward all mails to IFTTT, that triggers a push notification on the phone. - It would be even greater to have an option to change the mail content for email-notifications tominimal
, where mail body holds just the deep link to the rocket.chat conversation and the subject holds the channel title (with some prefix, like the rocket.chat domain or something like that).With this it would be quite easy to set up a IFTTT rule for getting push-notifications per user via email notifications without having the rocket.chat host to set up its own relay for push notifications. And users could get up to 750 notifications for free with the free tier of IFTTT.