mirror of
https://github.com/wekan/wekan.git
synced 2026-02-28 19:00:17 +01:00
Implement presence indicators
This commit is contained in:
parent
6db01bb3c7
commit
f4c80d1315
18 changed files with 116 additions and 228 deletions
|
|
@ -108,14 +108,20 @@ Meteor.publishComposite('board', function(boardId, slug) {
|
|||
},
|
||||
|
||||
// Board members. This publication also includes former board members that
|
||||
// are no more members of the board but may have some activities attached
|
||||
// to them.
|
||||
// aren't members anymore but may have some activities attached to them in
|
||||
// the history.
|
||||
{
|
||||
find: function(board) {
|
||||
return Users.find({
|
||||
_id: { $in: _.pluck(board.members, 'userId') }
|
||||
});
|
||||
}
|
||||
},
|
||||
// Presence indicators
|
||||
children: [{
|
||||
find: function(user) {
|
||||
return Presences.find({userId: user._id});
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue