From b7d9f822de27d9ce902797d9bda2c2bf286ac8e6 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Tue, 10 Jun 2025 17:17:39 +0200 Subject: [PATCH] ov-components: apply background from storage based on background effects button status --- .../src/lib/components/session/session.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts index 96211c80..3a7a2192 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/session/session.component.ts @@ -181,8 +181,10 @@ export class SessionComponent implements OnInit, OnDestroy { set layoutContainer(container: ElementRef) { setTimeout(async () => { if (container) { - // Apply background from storage when layout container is in DOM - await this.backgroundService.applyBackgroundFromStorage(); + if (this.libService.showBackgroundEffectsButton()) { + // Apply background from storage when layout container is in DOM only when background effects button is enabled + await this.backgroundService.applyBackgroundFromStorage(); + } } }, 0); }