mirror of
https://github.com/wekan/wekan.git
synced 2026-01-17 06:55:29 +01:00
- [Improve notifications](https://github.com/wekan/wekan/pull/1948).
Thanks to Akuket ! Closes #1304
This commit is contained in:
parent
a90f648d5e
commit
e9f8e150e7
6 changed files with 3 additions and 60 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue