fix when leaving public guild
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user