mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Merge branch 'develop' into paglias/realtime-chat-v1
This commit is contained in:
@@ -70,7 +70,7 @@ angular.module('habitrpg')
|
||||
// When the user correctly enters the party channel
|
||||
partyChannel.bind('pusher:subscription_succeeded', function(pusherMembers) {
|
||||
// Wait for the party to be loaded
|
||||
Groups.party(reconnecting ? true : false).then(function (party) {
|
||||
Groups.party(reconnecting).then(function (party) {
|
||||
// If we just reconnected after some inactivity, sync the party
|
||||
if (reconnecting === true) {
|
||||
_.assign($rootScope.party, party);
|
||||
@@ -182,6 +182,7 @@ angular.module('habitrpg')
|
||||
partyId = user && $rootScope.user.party && $rootScope.user.party._id;
|
||||
if (!partyId) return;
|
||||
|
||||
// See if another tab is already connected to Pusher
|
||||
if (!localStorage.getItem(tabIdKey)) {
|
||||
connectToPusher(partyId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user