mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-18 03:52:54 +00:00
Merge pull request #7657 from Hus274/7600
Removing accepted guild invitations from the local copy of the user o…
This commit is contained in:
commit
c34c21192b
1 changed files with 2 additions and 0 deletions
|
|
@ -65,6 +65,8 @@ habitrpg.controller("GuildsCtrl", ['$scope', 'Groups', 'User', 'Challenges', '$r
|
|||
Analytics.track({'hitType':'event', 'eventCategory':'behavior', 'eventAction':'join group', 'owner':false, 'groupType':'guild','privacy': joinedGroup.privacy})
|
||||
}
|
||||
|
||||
_.pull(User.user.invitations.guilds, group);
|
||||
|
||||
$location.path('/options/groups/guilds/' + joinedGroup._id);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue