From e91df47d1be80149d5f7a04a3ce5f231eeaee9d1 Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Wed, 21 Jul 2021 15:29:09 -0500 Subject: [PATCH] fix(ShareDesktopButton): getParticipants reference --- react/features/toolbox/components/web/ShareDesktopButton.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/react/features/toolbox/components/web/ShareDesktopButton.js b/react/features/toolbox/components/web/ShareDesktopButton.js index 78dc4335c..cdb948cc5 100644 --- a/react/features/toolbox/components/web/ShareDesktopButton.js +++ b/react/features/toolbox/components/web/ShareDesktopButton.js @@ -3,7 +3,6 @@ import { translate } from '../../../base/i18n'; import { IconShareDesktop } from '../../../base/icons'; import JitsiMeetJS from '../../../base/lib-jitsi-meet/_'; -import { getParticipants } from '../../../base/participants'; import { connect } from '../../../base/redux'; import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components'; import { getLocalVideoTrack } from '../../../base/tracks'; @@ -123,9 +122,7 @@ const mapStateToProps = state => { if (enableFeaturesBasedOnToken) { // we enable desktop sharing if any participant already have this // feature enabled - desktopSharingEnabled = getParticipants(state) - .find(({ features = {} }) => - String(features['screen-sharing']) === 'true') !== undefined; + desktopSharingEnabled = state['features/base/participant'].haveParticipantWithScreenSharingFeature; desktopSharingDisabledTooltipKey = 'dialog.shareYourScreenDisabled'; }