mirror of
https://github.com/wekan/wekan.git
synced 2026-01-25 18:56:10 +01:00
- Fix: Update broke the ability to mute notifications;
- Automatically close the sidebar. Thanks to Akuket ! Closes #1952
This commit is contained in:
parent
f5125b76bc
commit
849f15ceee
3 changed files with 8 additions and 14 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue