|
|
@@ -5,8 +5,7 @@ import { IconShareDesktop } from '../../../base/icons';
|
|
5
|
5
|
import JitsiMeetJS from '../../../base/lib-jitsi-meet/_';
|
|
6
|
6
|
import { connect } from '../../../base/redux';
|
|
7
|
7
|
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
|
|
8
|
|
-import { getLocalVideoTrack } from '../../../base/tracks';
|
|
9
|
|
-import { isScreenAudioShared } from '../../../screen-share';
|
|
|
8
|
+import { isScreenVideoShared } from '../../../screen-share';
|
|
10
|
9
|
|
|
11
|
10
|
type Props = AbstractButtonProps & {
|
|
12
|
11
|
|
|
|
@@ -113,7 +112,6 @@ class ShareDesktopButton extends AbstractButton<Props, *> {
|
|
113
|
112
|
* @returns {Object}
|
|
114
|
113
|
*/
|
|
115
|
114
|
const mapStateToProps = state => {
|
|
116
|
|
- const localVideo = getLocalVideoTrack(state['features/base/tracks']);
|
|
117
|
115
|
let desktopSharingEnabled = JitsiMeetJS.isDesktopSharingEnabled();
|
|
118
|
116
|
const { enableFeaturesBasedOnToken } = state['features/base/config'];
|
|
119
|
117
|
|
|
|
@@ -129,7 +127,7 @@ const mapStateToProps = state => {
|
|
129
|
127
|
return {
|
|
130
|
128
|
_desktopSharingDisabledTooltipKey: desktopSharingDisabledTooltipKey,
|
|
131
|
129
|
_desktopSharingEnabled: desktopSharingEnabled,
|
|
132
|
|
- _screensharing: (localVideo && localVideo.videoType === 'desktop') || isScreenAudioShared(state)
|
|
|
130
|
+ _screensharing: isScreenVideoShared(state)
|
|
133
|
131
|
};
|
|
134
|
132
|
};
|
|
135
|
133
|
|