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
@ -228,12 +228,8 @@ export class GameRoom {
|
|||||||
this.leaveGroup(user);
|
this.leaveGroup(user);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (user.following.length > 0) {
|
const users = user.group.getUsers().filter((u) => u.following.length === 0);
|
||||||
const users = user.group.getUsers().filter((u) => u.following.length === 0);
|
users.forEach((foreignUser) => leaveIfOutOfRadius(foreignUser));
|
||||||
users.forEach((foreignUser) => leaveIfOutOfRadius(foreignUser));
|
|
||||||
} else {
|
|
||||||
leaveIfOutOfRadius(user);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user