Implement presence indicators

This commit is contained in:
Maxime Quandalle 2015-05-30 15:50:48 +02:00
parent 6db01bb3c7
commit f4c80d1315
18 changed files with 116 additions and 228 deletions

View file

@ -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});
}
}]
}
]
};