mirror of
https://github.com/wekan/wekan.git
synced 2026-01-25 10:46:09 +01:00
- Fix: Update broke the ability to mute notifications;
- Automatically close the sidebar. Thanks to Akuket ! Closes #1952
This commit is contained in:
parent
f5125b76bc
commit
849f15ceee
3 changed files with 8 additions and 14 deletions
|
|
@ -20,19 +20,13 @@ Notifications = {
|
|||
},
|
||||
|
||||
// filter recipients according to user settings for notification
|
||||
getUsers: (participants, watchers) => {
|
||||
const userMap = {};
|
||||
participants.forEach((userId) => {
|
||||
if (userMap[userId]) return;
|
||||
const user = Users.findOne(userId);
|
||||
userMap[userId] = user;
|
||||
});
|
||||
getUsers: (watchers) => {
|
||||
const users = [];
|
||||
watchers.forEach((userId) => {
|
||||
if (userMap[userId]) return;
|
||||
const user = Users.findOne(userId);
|
||||
userMap[userId] = user;
|
||||
if (user) users.push(user);
|
||||
});
|
||||
return _.map(userMap, (v) => v);
|
||||
return users;
|
||||
},
|
||||
|
||||
notify: (user, title, description, params) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue