mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 14:17:05 +00:00
actually clear out seeking field on user. Even when creating a party
This commit is contained in:
parent
b76585cce3
commit
3313584d60
1 changed files with 2 additions and 1 deletions
|
|
@ -136,6 +136,7 @@ api.createGroup = {
|
|||
if (user.party._id) throw new NotAuthorized(res.t('messageGroupAlreadyInParty'));
|
||||
|
||||
user.party._id = group._id;
|
||||
user.party.seeking = undefined;
|
||||
}
|
||||
|
||||
let savedGroup;
|
||||
|
|
@ -590,7 +591,7 @@ api.joinGroup = {
|
|||
// Clear all invitations of new user and reset looking for party state
|
||||
user.invitations.parties = [];
|
||||
user.invitations.party = {};
|
||||
user.party.seeking = null;
|
||||
user.party.seeking = undefined;
|
||||
|
||||
// invite new user to pending quest
|
||||
if (group.quest.key && !group.quest.active) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue