Make screenShareLocallyMuted check safer

Signed-off-by: Jake Janicke <jaketripplj@gmail.com>
This commit is contained in:
Jake Janicke
2026-03-04 15:13:20 -06:00
parent c74d19ad33
commit 99401a7285

View File

@@ -281,7 +281,8 @@ export const SpotlightTile: FC<Props> = ({
const isLocalScreenShare =
isScreenShare && (currentMedia as RemoteScreenShareViewModel)?.local;
const screenShareLocallyMuted = useBehavior(
isScreenShare
isScreenShare &&
(currentMedia as RemoteScreenShareViewModel).playbackMuted$ != null
? (currentMedia as RemoteScreenShareViewModel).playbackMuted$
: constant(false),
);