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;
if (!jitsiKeepCircle) {
this.connection?.setSilent(true);
mediaManager.hideGameOverlay();
} else {
this.connection?.setSilent(true);
mediaManager.hideGameOverlay();
if (jitsiKeepCircle) {
const silent = this.gameMap.getCurrentProperties().get("silent");
this.connection?.setSilent(!!silent);
}
mediaManager.showGameOverlay();
}
analyticsClient.enteredJitsi(roomName, this.room.id);
//permit to stop jitsi when user close iframe