From e817c2304da5144251e7044897cd0561e2c68028 Mon Sep 17 00:00:00 2001 From: csantosm <4a.santos@gmail.com> Date: Mon, 9 May 2022 13:28:07 +0200 Subject: [PATCH] openvidu-component: Close panel when component is destroyed --- .../src/lib/components/pre-join/pre-join.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/pre-join/pre-join.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/pre-join/pre-join.component.ts index 52e0c0b9b..71895dca8 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/pre-join/pre-join.component.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/pre-join/pre-join.component.ts @@ -103,6 +103,7 @@ export class PreJoinComponent implements OnInit, OnDestroy { if (this.screenShareStateSubscription) this.screenShareStateSubscription.unsubscribe(); if (this.backgroundEffectsButtonSub) this.backgroundEffectsButtonSub.unsubscribe(); if (this.minimalSub) this.minimalSub.unsubscribe(); + this.panelService.closePanel(); } async onCameraSelected(event: any) {