Lock user when he was banned

This commit is contained in:
Gregoire Parant 2021-01-25 14:10:16 +01:00
parent 18fb508828
commit 8de05c39c1
2 changed files with 23 additions and 1 deletions

View file

@ -524,6 +524,7 @@ export class GameScene extends ResizableScene implements CenterListener {
this.simplePeer = new SimplePeer(this.connection, !this.room.isPublic, this.playerName);
this.GlobalMessageManager = new GlobalMessageManager(this.connection);
this.UserMessageManager = new UserMessageManager(this.connection);
this.UserMessageManager.setReceiveBanListener(this.lockUser.bind(this));
const self = this;
this.simplePeer.registerPeerConnectionListener({
@ -1235,5 +1236,10 @@ export class GameScene extends ResizableScene implements CenterListener {
mediaManager.removeTriggerCloseJitsiFrameButton('close-jisi');
}
private lockUser(){
this.stopJitsi();
coWebsiteManager.closeCoWebsite();
this.userInputManager.clearAllInputKeyboard();
}
}