fix keepCircle Property

This commit is contained in:
_Bastler 2021-11-24 13:06:43 +01:00
parent 3b98888c3a
commit bc7d9a96fe

View File

@ -1897,13 +1897,15 @@ export class GameScene extends DirtyScene {
const jitsiKeepCircle = allProps.get("jitsiKeepCircle") as boolean | false; const jitsiKeepCircle = allProps.get("jitsiKeepCircle") as boolean | false;
if (!jitsiKeepCircle) { this.connection?.setSilent(true);
this.connection?.setSilent(true); mediaManager.hideGameOverlay();
mediaManager.hideGameOverlay();
} else { if (jitsiKeepCircle) {
const silent = this.gameMap.getCurrentProperties().get("silent"); const silent = this.gameMap.getCurrentProperties().get("silent");
this.connection?.setSilent(!!silent); this.connection?.setSilent(!!silent);
mediaManager.showGameOverlay();
} }
analyticsClient.enteredJitsi(roomName, this.room.id); analyticsClient.enteredJitsi(roomName, this.room.id);
//permit to stop jitsi when user close iframe //permit to stop jitsi when user close iframe