leave group immediately if status changed to silent | jitsi

This commit is contained in:
Piotr 'pwh' Hanusiak 2022-04-20 14:32:23 +02:00
parent 8ff791e024
commit a8d56263ea

View File

@ -206,7 +206,11 @@ export class GameRoom {
}
updatePlayerDetails(user: User, playerDetailsMessage: SetPlayerDetailsMessage) {
const isSilent = user.silent;
user.updateDetails(playerDetailsMessage);
if (!isSilent && user.group !== undefined && user.silent) {
this.leaveGroup(user);
}
}
private updateUserGroup(user: User): void {