v3 client: fix group not found when leaving party

This commit is contained in:
Matteo Pagliazzi
2016-05-15 11:06:20 +02:00
parent a8a063d3f6
commit 6ab3280045
2 changed files with 4 additions and 2 deletions

View File

@@ -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');
});
});
}
};