fix(ShareDesktopButton): getParticipants reference
This commit is contained in:
parent
2d04f3852c
commit
e91df47d1b
|
@ -3,7 +3,6 @@
|
||||||
import { translate } from '../../../base/i18n';
|
import { translate } from '../../../base/i18n';
|
||||||
import { IconShareDesktop } from '../../../base/icons';
|
import { IconShareDesktop } from '../../../base/icons';
|
||||||
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
|
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
|
||||||
import { getParticipants } from '../../../base/participants';
|
|
||||||
import { connect } from '../../../base/redux';
|
import { connect } from '../../../base/redux';
|
||||||
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
|
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
|
||||||
import { getLocalVideoTrack } from '../../../base/tracks';
|
import { getLocalVideoTrack } from '../../../base/tracks';
|
||||||
|
@ -123,9 +122,7 @@ const mapStateToProps = state => {
|
||||||
if (enableFeaturesBasedOnToken) {
|
if (enableFeaturesBasedOnToken) {
|
||||||
// we enable desktop sharing if any participant already have this
|
// we enable desktop sharing if any participant already have this
|
||||||
// feature enabled
|
// feature enabled
|
||||||
desktopSharingEnabled = getParticipants(state)
|
desktopSharingEnabled = state['features/base/participant'].haveParticipantWithScreenSharingFeature;
|
||||||
.find(({ features = {} }) =>
|
|
||||||
String(features['screen-sharing']) === 'true') !== undefined;
|
|
||||||
desktopSharingDisabledTooltipKey = 'dialog.shareYourScreenDisabled';
|
desktopSharingDisabledTooltipKey = 'dialog.shareYourScreenDisabled';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue