Skip to content

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

feat(AddPeopleDialog): Enable contact invitation based on interfaceConfig flag

Mihai Uscatab1c5805f4ad
diff --git a/interface_config.js b/interface_config.js
index 5399052999..4e91fd31fa 100644
--- a/interface_config.js
+++ b/interface_config.js
@@ -88,6 +88,8 @@ var interfaceConfig = {
DISPLAY_WELCOME_PAGE_CONTENT: true,
DISPLAY_WELCOME_PAGE_TOOLBAR_ADDITIONAL_CONTENT: false,
+ ENABLE_DIAL_OUT: true,
+
ENABLE_FEEDBACK_ANIMATION: false, // Enables feedback star animation.
FILM_STRIP_MAX_HEIGHT: 120,
diff --git a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js
index e63fc22788..f3afcfcbfc 100644
--- a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js
+++ b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js
@@ -36,9 +36,9 @@ type Props = {
_dialIn: Object,
/**
- * Whether or not invite should be hidden.
+ * Whether or not invite contacts should be visible.
*/
- _hideInviteContacts: boolean,
+ _inviteContactsVisible: boolean,
/**
* The current url of the conference to be copied onto the clipboard.
@@ -79,7 +79,7 @@ type Props = {
function AddPeopleDialog({
_conferenceName,
_dialIn,
- _hideInviteContacts,
+ _inviteContactsVisible,
_inviteUrl,
_liveStreamViewURL,
_localParticipantName,
@@ -146,7 +146,7 @@ function AddPeopleDialog({
titleKey = 'addPeople.inviteMorePrompt'
width = { 'small' }>
<div className = 'invite-more-dialog'>
- { !_hideInviteContacts && <InviteContactsSection /> }
+ { _inviteContactsVisible && <InviteContactsSection /> }
<CopyMeetingLinkSection url = { _inviteUrl } />
<InviteByEmailSection
inviteSubject = { inviteSubject }
@@ -183,12 +183,12 @@ function mapStateToProps(state) {
const { iAmRecorder } = state['features/base/config'];
const addPeopleEnabled = isAddPeopleEnabled(state);
const dialOutEnabled = isDialOutEnabled(state);
+ const hideInviteContacts = iAmRecorder || (!addPeopleEnabled && !dialOutEnabled);
return {
_conferenceName: getRoomName(state),
_dialIn: state['features/invite'],
- _hideInviteContacts:
- iAmRecorder || (!addPeopleEnabled && !dialOutEnabled),
+ _inviteContactsVisible: interfaceConfig.ENABLE_DIAL_OUT && !hideInviteContacts,
_inviteUrl: getInviteURL(state),
_liveStreamViewURL:
currentLiveStreamingSession