summaryrefslogtreecommitdiffstats
path: root/collections/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'collections/users.js')
-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')
+ };
+ };
+}