fix(toolbox) Disable screensharing button on mobile for video sender limit.

Also, ignore the toggle screenshare shortcut when the video sender limit is reached.
This commit is contained in:
Jaya Allamsetty
2022-01-05 15:27:42 -05:00
parent b8469545f3
commit 29eb9452c0
5 changed files with 49 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ import React from 'react';
import { Platform } from 'react-native';
import { connect } from '../../../base/redux';
import { isDesktopShareButtonDisabled } from '../../functions';
import ScreenSharingAndroidButton from './ScreenSharingAndroidButton.js';
import ScreenSharingIosButton from './ScreenSharingIosButton.js';
@@ -30,7 +31,7 @@ const ScreenSharingButton = props => (
* }}
*/
function _mapStateToProps(state): Object {
const disabled = state['features/base/audio-only'].enabled;
const disabled = state['features/base/audio-only'].enabled || isDesktopShareButtonDisabled(state);
return {
_disabled: disabled