mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +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');
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user