improve notifications

This commit is contained in:
guillaume 2018-10-11 16:44:52 +02:00
parent 28a01862d0
commit b925b8e74d
9 changed files with 163 additions and 59 deletions

View file

@ -25,16 +25,12 @@ Notifications = {
participants.forEach((userId) => {
if (userMap[userId]) return;
const user = Users.findOne(userId);
if (user && user.hasTag('notify-participate')) {
userMap[userId] = user;
}
userMap[userId] = user;
});
watchers.forEach((userId) => {
if (userMap[userId]) return;
const user = Users.findOne(userId);
if (user && user.hasTag('notify-watch')) {
userMap[userId] = user;
}
userMap[userId] = user;
});
return _.map(userMap, (v) => v);
},