mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
pusher: sync user when reconnecting
This commit is contained in:
parent
2bca92b4d5
commit
24df8d8f2f
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ angular.module('habitrpg')
|
||||||
|
|
||||||
// When the user correctly enters the party channel
|
// When the user correctly enters the party channel
|
||||||
partyChannel.bind('pusher:subscription_succeeded', function(pusherMembers) {
|
partyChannel.bind('pusher:subscription_succeeded', function(pusherMembers) {
|
||||||
|
// Sync the user if we're reconnecting
|
||||||
|
if (reconnecting) $rootScope.User.sync();
|
||||||
|
|
||||||
// Wait for the party to be loaded
|
// Wait for the party to be loaded
|
||||||
Groups.party(reconnecting).then(function (party) {
|
Groups.party(reconnecting).then(function (party) {
|
||||||
// If we just reconnected after some inactivity, sync the party
|
// If we just reconnected after some inactivity, sync the party
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue