mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 03:42:30 +00:00
fix(ShareDesktopButton): getParticipants reference
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user