From 99401a7285a1879f45098810e822ca964ec50383 Mon Sep 17 00:00:00 2001 From: Jake Janicke Date: Wed, 4 Mar 2026 15:13:20 -0600 Subject: [PATCH] Make screenShareLocallyMuted check safer Signed-off-by: Jake Janicke --- src/tile/SpotlightTile.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tile/SpotlightTile.tsx b/src/tile/SpotlightTile.tsx index 77f72a2c..411d730e 100644 --- a/src/tile/SpotlightTile.tsx +++ b/src/tile/SpotlightTile.tsx @@ -281,7 +281,8 @@ export const SpotlightTile: FC = ({ const isLocalScreenShare = isScreenShare && (currentMedia as RemoteScreenShareViewModel)?.local; const screenShareLocallyMuted = useBehavior( - isScreenShare + isScreenShare && + (currentMedia as RemoteScreenShareViewModel).playbackMuted$ != null ? (currentMedia as RemoteScreenShareViewModel).playbackMuted$ : constant(false), );