leave group immediately if status changed to silent | jitsi
This commit is contained in:
parent
8ff791e024
commit
a8d56263ea
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user