Thanks to Akuket !

Closes #1304
This commit is contained in:
Lauri Ojansivu 2018-10-14 00:09:41 +03:00
parent a90f648d5e
commit e9f8e150e7
6 changed files with 3 additions and 60 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);
},