mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-10 05:57:07 +00:00
Make screenShareVolume safer
Signed-off-by: Jake Janicke <jaketripplj@gmail.com>
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user