mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
enable pusher for all users
This commit is contained in:
parent
bce4f55df5
commit
689a321a9b
1 changed files with 3 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue