mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
v3 client: fix group not found when leaving party
This commit is contained in:
@@ -71,7 +71,9 @@ habitrpg.controller("PartyCtrl", ['$rootScope','$scope','Groups','Chat','User','
|
|||||||
Groups.Group.leave($scope.selectedGroup._id, keep)
|
Groups.Group.leave($scope.selectedGroup._id, keep)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
Analytics.updateUser({'partySize':null,'partyID':null});
|
Analytics.updateUser({'partySize':null,'partyID':null});
|
||||||
$rootScope.hardRedirect('/#/options/groups/party');
|
User.sync().then(function () {
|
||||||
|
$rootScope.hardRedirect('/#/options/groups/party');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ angular.module('habitrpg')
|
|||||||
|
|
||||||
sync: function(){
|
sync: function(){
|
||||||
userServices.log({});
|
userServices.log({});
|
||||||
sync();
|
return sync();
|
||||||
},
|
},
|
||||||
|
|
||||||
save: save,
|
save: save,
|
||||||
|
|||||||
Reference in New Issue
Block a user