mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +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)
|
||||
.then(function (response) {
|
||||
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(){
|
||||
userServices.log({});
|
||||
sync();
|
||||
return sync();
|
||||
},
|
||||
|
||||
save: save,
|
||||
|
||||
Reference in New Issue
Block a user