diff options
author | guillaume <guillaume.cassou@supinfo.com> | 2018-10-16 11:33:16 +0200 |
---|---|---|
committer | guillaume <guillaume.cassou@supinfo.com> | 2018-10-16 11:33:16 +0200 |
commit | 41330b15dccfdd45c08b2657833a0bcba9576243 (patch) | |
tree | e1e9548eeb6a4c2c6fc80ff94e556489ad9493c4 /models | |
parent | 5c588b24240fb2fc996828e8478ac24a490971d8 (diff) | |
download | wekan-41330b15dccfdd45c08b2657833a0bcba9576243.tar.gz wekan-41330b15dccfdd45c08b2657833a0bcba9576243.tar.bz2 wekan-41330b15dccfdd45c08b2657833a0bcba9576243.zip |
update broke ability to mute notifications
Diffstat (limited to 'models')
-rw-r--r-- | models/activities.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/activities.js b/models/activities.js index aad5d412..47e3ff1e 100644 --- a/models/activities.js +++ b/models/activities.js @@ -152,10 +152,10 @@ if (Meteor.isServer) { if (board) { const watchingUsers = _.pluck(_.where(board.watchers, {level: 'watching'}), 'userId'); const trackingUsers = _.pluck(_.where(board.watchers, {level: 'tracking'}), 'userId'); - watchers = _.union(watchers, watchingUsers || []); + watchers = _.union(watchers, watchingUsers, _.intersection(participants, trackingUsers)); } - Notifications.getUsers(participants, watchers).forEach((user) => { + Notifications.getUsers(watchers).forEach((user) => { Notifications.notify(user, title, description, params); }); |