mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-19 09:07:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user