Checking if a user should leave a group when someone moves in the group every time.
This fixes a long standing issue.
This commit is contained in:
parent
44ff9e30d5
commit
fd9cb09de6
1 changed files with 2 additions and 6 deletions
|
@ -228,12 +228,8 @@ export class GameRoom {
|
|||
this.leaveGroup(user);
|
||||
}
|
||||
};
|
||||
if (user.following.length > 0) {
|
||||
const users = user.group.getUsers().filter((u) => u.following.length === 0);
|
||||
users.forEach((foreignUser) => leaveIfOutOfRadius(foreignUser));
|
||||
} else {
|
||||
leaveIfOutOfRadius(user);
|
||||
}
|
||||
const users = user.group.getUsers().filter((u) => u.following.length === 0);
|
||||
users.forEach((foreignUser) => leaveIfOutOfRadius(foreignUser));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue