mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-10 05:57:07 +00:00
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 =
|
||||
isScreenShare && (currentMedia as RemoteScreenShareViewModel)?.local;
|
||||
const screenShareLocallyMuted = useBehavior(
|
||||
isScreenShare
|
||||
isScreenShare &&
|
||||
(currentMedia as RemoteScreenShareViewModel).playbackMuted$ != null
|
||||
? (currentMedia as RemoteScreenShareViewModel).playbackMuted$
|
||||
: constant(false),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user