mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 05:08:51 +00:00
fix when leaving public guild
This commit is contained in:
parent
8ae75e09c5
commit
898adfdc13
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
|||
// remove user from group members if guild is public so that he can re-join it immediately
|
||||
if(group.privacy == 'public'){
|
||||
// slow when a lot of members...? probably yes
|
||||
group.members = _.without(group.members, member);
|
||||
group.members = _.without(group.members, User.user._id);
|
||||
group.memberCount--;
|
||||
}
|
||||
$state.go('options.social.guilds');
|
||||
|
|
|
|||
Loading…
Reference in a new issue