|
@@ -9,6 +9,8 @@ import { connect } from '../../../base/redux';
|
9
|
9
|
import { beginAddPeople } from '../../../invite';
|
10
|
10
|
import { isToolboxVisible } from '../../../toolbox';
|
11
|
11
|
|
|
12
|
+declare var interfaceConfig: Object;
|
|
13
|
+
|
12
|
14
|
type Props = {
|
13
|
15
|
|
14
|
16
|
/**
|
|
@@ -74,10 +76,12 @@ function InviteMore({
|
74
|
76
|
*/
|
75
|
77
|
function mapStateToProps(state) {
|
76
|
78
|
const participantCount = getParticipantCount(state);
|
|
79
|
+ const isAlone = participantCount === 1;
|
|
80
|
+ const hide = interfaceConfig.HIDE_INVITE_MORE_HEADER;
|
77
|
81
|
|
78
|
82
|
return {
|
79
|
83
|
_tileViewEnabled: state['features/video-layout'].tileViewEnabled,
|
80
|
|
- _visible: isToolboxVisible(state) && participantCount === 1
|
|
84
|
+ _visible: isToolboxVisible(state) && isAlone && !hide
|
81
|
85
|
};
|
82
|
86
|
}
|
83
|
87
|
|