- Fix: Update broke the ability to mute notifications;

- Automatically close the sidebar.

Thanks to Akuket !

Closes #1952
This commit is contained in:
Lauri Ojansivu 2018-10-16 13:52:45 +03:00
parent f5125b76bc
commit 849f15ceee
3 changed files with 8 additions and 14 deletions

View file

@ -143,10 +143,11 @@ if (Meteor.isServer) {
}
if (board) {
const watchingUsers = _.pluck(_.where(board.watchers, {level: 'watching'}), 'userId');
watchers = _.union(watchers, watchingUsers || []);
const trackingUsers = _.pluck(_.where(board.watchers, {level: 'tracking'}), 'userId');
watchers = _.union(watchers, watchingUsers, _.intersection(participants, trackingUsers));
}
Notifications.getUsers(participants, watchers).forEach((user) => {
Notifications.getUsers(watchers).forEach((user) => {
Notifications.notify(user, title, description, params);
});