rebroadcast: Use optional chaining for allowBatteryPrebuffer (#1986)

This commit is contained in:
Alexis Rouillard
2026-02-18 19:19:15 +01:00
committed by GitHub
parent 7112e049cb
commit 6fd84af50f

View File

@@ -1358,7 +1358,7 @@ class PrebufferMixin extends SettingsMixinDeviceBase<VideoCamera> 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) {