mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
remove need to refresh after having accepted party invite
This commit is contained in:
@@ -173,7 +173,8 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
||||
$scope.join = function(party){
|
||||
var group = new Groups.Group({_id: party.id, name: party.name});
|
||||
// there a better way to access GroupsCtrl.groups.party?
|
||||
Groups.groups.party = group.$join(function(){
|
||||
group.$join(function(party){
|
||||
$scope.group = party;
|
||||
User.user.invitations.party = undefined;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user