From 521e661dcb38b5a58b70593f3b805be57bd6746f Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Fri, 4 Sep 2015 01:40:29 +0200 Subject: Change our presence package tmeasday:presence was doing unnecessary ping calls to the server every 5 seconds instead of using the status of the DDP connection (this could save a fair amount of traffic in case of important server load). I guess this change also fixes #221, but since no issue reproduction was provided, it's difficult to tell. --- client/components/users/userAvatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/components') 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)) -- cgit v1.2.3-1-g7c22