summaryrefslogtreecommitdiffstats
path: root/collections
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-05-30 15:50:48 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-05-30 15:50:48 +0200
commitf4c80d1315c181300bd37ef5de98c365325bc130 (patch)
tree811dd0a9bba9bbe49d7e4c360719e72899574783 /collections
parent6db01bb3c7bbcf3e5451dd828d3d0932eb5efec3 (diff)
downloadwekan-f4c80d1315c181300bd37ef5de98c365325bc130.tar.gz
wekan-f4c80d1315c181300bd37ef5de98c365325bc130.tar.bz2
wekan-f4c80d1315c181300bd37ef5de98c365325bc130.zip
Implement presence indicators
Diffstat (limited to 'collections')
-rw-r--r--collections/users.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/collections/users.js b/collections/users.js
index 6e2c6bdc..2f44e19e 100644
--- a/collections/users.js
+++ b/collections/users.js
@@ -43,9 +43,6 @@ Users.helpers({
Users.before.insert(function(userId, doc) {
doc.profile = doc.profile || {};
-
- // connect profile.status default
- doc.profile.status = 'offline';
});
if (Meteor.isServer) {
@@ -110,3 +107,12 @@ if (Meteor.isServer) {
});
});
}
+
+// Presence indicator
+if (Meteor.isClient) {
+ Presence.state = function() {
+ return {
+ currentBoardId: Session.get('currentBoard')
+ };
+ };
+}