removed silent message

This commit is contained in:
Piotr 'pwh' Hanusiak
2022-04-14 11:41:01 +02:00
parent 8f0b02a9c8
commit 99854e2d62
12 changed files with 15 additions and 65 deletions
-16
View File
@@ -144,7 +144,6 @@ export class GameRoom {
joinRoomMessage.getUseruuid(),
joinRoomMessage.getIpaddress(),
position,
false,
this.positionNotifier,
joinRoomMessage.getStatus(),
socket,
@@ -345,21 +344,6 @@ export class GameRoom {
});
}
setSilent(user: User, silent: boolean) {
if (user.silent === silent) {
return;
}
user.silent = silent;
if (silent && user.group !== undefined) {
this.leaveGroup(user);
}
if (!silent) {
// If we are back to life, let's trigger a position update to see if we can join some group.
this.updatePosition(user, user.getPosition());
}
}
/**
* Makes a user leave a group and closes and destroy the group if the group contains only one remaining person.
*