fix(webcams): always unshare cameras if video selector is active

This commit is contained in:
prlanzarin 2021-10-15 18:52:12 -03:00
parent 54bda21287
commit 23c49902a0

View File

@ -54,8 +54,9 @@ const JoinVideoButton = ({
disableReason,
mountVideoPreview,
}) => {
const exitVideo = () => hasVideoStream && !VideoService.isMultipleCamerasEnabled();
const { enableWebcamSelectorButton } = Meteor.settings.public.app;
const exitVideo = () => hasVideoStream
&& (!VideoService.isMultipleCamerasEnabled() || enableWebcamSelectorButton);
const handleOnClick = debounce(() => {
if (!validIOSVersion()) {