Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

config: add ability to hide the "invite more" header button

Adam Wane3d66db3d710
diff --git a/interface_config.js b/interface_config.js
index cdde25d57d..1fc430a10f 100644
--- a/interface_config.js
+++ b/interface_config.js
@@ -38,6 +38,11 @@ var interfaceConfig = {
*/
AUTHENTICATION_ENABLE: true,
+ /**
+ * Hide the invite prompt in the header when alone in the meeting.
+ */
+ HIDE_INVITE_MORE_HEADER: false,
+
/**
* The name of the toolbar buttons to display in the toolbar. If present,
* the button will display. Exceptions are "livestreaming" and "recording"
diff --git a/react/features/base/config/interfaceConfigWhitelist.js b/react/features/base/config/interfaceConfigWhitelist.js
index a588a85b48..cbf001d340 100644
--- a/react/features/base/config/interfaceConfigWhitelist.js
+++ b/react/features/base/config/interfaceConfigWhitelist.js
@@ -29,6 +29,7 @@ export default [
'ENFORCE_NOTIFICATION_AUTO_DISMISS_TIMEOUT',
'FILM_STRIP_MAX_HEIGHT',
'GENERATE_ROOMNAMES_ON_WELCOME_PAGE',
+ 'HIDE_INVITE_MORE_HEADER',
'INDICATOR_FONT_SIZES',
'INITIAL_TOOLBAR_TIMEOUT',
'INVITATION_POWERED_BY',
diff --git a/react/features/conference/components/web/InviteMore.js b/react/features/conference/components/web/InviteMore.js
index 37538d29ff..2aa9d08a1a 100644
--- a/react/features/conference/components/web/InviteMore.js
+++ b/react/features/conference/components/web/InviteMore.js
@@ -9,6 +9,8 @@ import { connect } from '../../../base/redux';
import { beginAddPeople } from '../../../invite';
import { isToolboxVisible } from '../../../toolbox';
+declare var interfaceConfig: Object;
+
type Props = {
/**
@@ -74,10 +76,12 @@ function InviteMore({
*/
function mapStateToProps(state) {
const participantCount = getParticipantCount(state);
+ const isAlone = participantCount === 1;
+ const hide = interfaceConfig.HIDE_INVITE_MORE_HEADER;
return {
_tileViewEnabled: state['features/video-layout'].tileViewEnabled,
- _visible: isToolboxVisible(state) && participantCount === 1
+ _visible: isToolboxVisible(state) && isAlone && !hide
};
}