diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 64bff578..20778838 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -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