Make screenShareLocallyMuted check safer
Signed-off-by: Jake Janicke <jaketripplj@gmail.com>
This commit is contained in:
@@ -281,7 +281,8 @@ export const SpotlightTile: FC<Props> = ({
|
|||||||
const isLocalScreenShare =
|
const isLocalScreenShare =
|
||||||
isScreenShare && (currentMedia as RemoteScreenShareViewModel)?.local;
|
isScreenShare && (currentMedia as RemoteScreenShareViewModel)?.local;
|
||||||
const screenShareLocallyMuted = useBehavior(
|
const screenShareLocallyMuted = useBehavior(
|
||||||
isScreenShare
|
isScreenShare &&
|
||||||
|
(currentMedia as RemoteScreenShareViewModel).playbackMuted$ != null
|
||||||
? (currentMedia as RemoteScreenShareViewModel).playbackMuted$
|
? (currentMedia as RemoteScreenShareViewModel).playbackMuted$
|
||||||
: constant(false),
|
: constant(false),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user