Make screenShareVolume safer

Signed-off-by: Jake Janicke <jaketripplj@gmail.com>
This commit is contained in:
Jake Janicke
2026-03-04 16:05:56 -06:00
parent 99401a7285
commit 3216d68470

View File

@@ -290,7 +290,7 @@ export const SpotlightTile: FC<Props> = ({
? VolumeOffIcon
: VolumeOnIcon;
const screenShareVolume = useBehavior(
isScreenShare
isScreenShare && (currentMedia as RemoteScreenShareViewModel).playbackVolume$ != null
? (currentMedia as RemoteScreenShareViewModel).playbackVolume$
: constant(0),
);