mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
remove un-needed code
This commit is contained in:
@@ -858,11 +858,6 @@ api.leaveGroup = {
|
||||
_removeMessagesFromMember(user, group._id);
|
||||
await user.save();
|
||||
|
||||
if (group.type !== 'party') {
|
||||
const guildIndex = user.guilds.indexOf(group._id);
|
||||
if (guildIndex >= 0) user.guilds.splice(guildIndex, 1);
|
||||
}
|
||||
|
||||
if (group.hasNotCancelled()) await group.updateGroupPlan(true);
|
||||
res.respond(200, {});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user