summaryrefslogtreecommitdiffstats
path: root/models/activities.js
diff options
context:
space:
mode:
authorguillaume <guillaume.cassou@supinfo.com>2018-10-16 11:33:16 +0200
committerguillaume <guillaume.cassou@supinfo.com>2018-10-16 11:33:16 +0200
commit41330b15dccfdd45c08b2657833a0bcba9576243 (patch)
treee1e9548eeb6a4c2c6fc80ff94e556489ad9493c4 /models/activities.js
parent5c588b24240fb2fc996828e8478ac24a490971d8 (diff)
downloadwekan-41330b15dccfdd45c08b2657833a0bcba9576243.tar.gz
wekan-41330b15dccfdd45c08b2657833a0bcba9576243.tar.bz2
wekan-41330b15dccfdd45c08b2657833a0bcba9576243.zip
update broke ability to mute notifications
Diffstat (limited to 'models/activities.js')
-rw-r--r--models/activities.js4
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);
});