summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/components/users/userAvatar.js2
-rw-r--r--client/config/presence.js7
2 files changed, 8 insertions, 1 deletions
diff --git a/client/components/users/userAvatar.js b/client/components/users/userAvatar.js
index b0702468..5337f6e2 100644
--- a/client/components/users/userAvatar.js
+++ b/client/components/users/userAvatar.js
@@ -16,7 +16,7 @@ Template.userAvatar.helpers({
},
presenceStatusClassName() {
- const userPresence = Presences.findOne({ userId: this.userId });
+ const userPresence = presences.findOne({ userId: this.userId });
if (!userPresence)
return 'disconnected';
else if (Session.equals('currentBoard', userPresence.state.currentBoardId))
diff --git a/client/config/presence.js b/client/config/presence.js
new file mode 100644
index 00000000..39b94e4d
--- /dev/null
+++ b/client/config/presence.js
@@ -0,0 +1,7 @@
+Presence.configure({
+ state() {
+ return {
+ currentBoardId: Session.get('currentBoard'),
+ };
+ },
+});