From 689a321a9b948eaf66629247f970df58c6f2c5e4 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 9 Aug 2016 20:05:04 +0200 Subject: [PATCH] enable pusher for all users --- website/client/js/services/pusherService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/client/js/services/pusherService.js b/website/client/js/services/pusherService.js index 70bed993ad..041e389e95 100644 --- a/website/client/js/services/pusherService.js +++ b/website/client/js/services/pusherService.js @@ -58,6 +58,8 @@ angular.module('habitrpg') api.socketId = api.pusher.connection.socket_id; }); + if (!partyId) return; + var partyChannelName = 'presence-group-' + partyId; var partyChannel = api.pusher.subscribe(partyChannelName); @@ -130,7 +132,7 @@ angular.module('habitrpg') // Connect the user to Pusher and to the party's chat channel partyId = user && $rootScope.user.party && $rootScope.user.party._id; - if (!partyId) return; + // if (!partyId) return; // See if another tab is already connected to Pusher if (!localStorage.getItem(tabIdKey)) {