From 6fd84af50f074550b41bb072d7453559798af08a Mon Sep 17 00:00:00 2001 From: Alexis Rouillard Date: Wed, 18 Feb 2026 19:19:15 +0100 Subject: [PATCH] rebroadcast: Use optional chaining for allowBatteryPrebuffer (#1986) --- plugins/prebuffer-mixin/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/prebuffer-mixin/src/main.ts b/plugins/prebuffer-mixin/src/main.ts index 268bbbb17..70f66635f 100644 --- a/plugins/prebuffer-mixin/src/main.ts +++ b/plugins/prebuffer-mixin/src/main.ts @@ -1358,7 +1358,7 @@ class PrebufferMixin extends SettingsMixinDeviceBase implements Vid } const name = mso?.name; const enabled = enabledIds.includes(id); - session = new PrebufferSession(this, mso, enabled, mso.allowBatteryPrebuffer); + session = new PrebufferSession(this, mso, enabled, mso?.allowBatteryPrebuffer ?? false); this.sessions.set(id, session); if (!enabled) {