Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(AddPeopleDialog): Add config option to overwrite invite subject app name
Mihai-Andrei Uscatf7b73c0d09b0
diff --git a/config.js b/config.jsindex 1f69f5011a..623cec1ce5 100644--- a/config.js+++ b/config.js@@ -434,6 +434,10 @@ var config = {// Base URL for a Gravatar-compatible service. Defaults to libravatar.// gravatarBaseURL: 'https://seccdn.libravatar.org/avatar/',+ // App name to be displayed in the invitation email subject, as an alternative to+ // interfaceConfig.APP_NAME.+ // inviteAppName: null,+// Moved from interfaceConfig(TOOLBAR_BUTTONS).// The name of the toolbar buttons to display in the toolbar, including the// "More actions" menu. If present, the button will display. Exceptions arediff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.jsindex b8b6168488..a454a4ebcc 100644--- a/react/features/base/config/configWhitelist.js+++ b/react/features/base/config/configWhitelist.js@@ -136,6 +136,7 @@ export default ['iAmSipGateway','iceTransportPolicy','ignoreStartMuted',+ 'inviteAppName','liveStreamingEnabled','localRecording','maxFullResolutionParticipants',diff --git a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.jsindex 7fa75a3b1c..78e74d6960 100644--- a/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js+++ b/react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js@@ -61,6 +61,11 @@ type Props = {*/_invitationText: string,+ /**+ * An alternate app name to be displayed in the email subject.+ */+ _inviteAppName: ?string,+/*** Whether or not invite contacts should be visible.*/@@ -104,6 +109,7 @@ function AddPeopleDialog({_urlSharingVisible,_emailSharingVisible,_invitationText,+ _inviteAppName,_inviteContactsVisible,_inviteUrl,_liveStreamViewURL,@@ -136,7 +142,7 @@ function AddPeopleDialog({}, []);const inviteSubject = t('addPeople.inviteMoreMailSubject', {- appName: interfaceConfig.APP_NAME+ appName: _inviteAppName ?? interfaceConfig.APP_NAME});return (@@ -184,7 +190,7 @@ function AddPeopleDialog({function mapStateToProps(state, ownProps) {const currentLiveStreamingSession= getActiveSession(state, JitsiRecordingConstants.mode.STREAM);- const { iAmRecorder } = state['features/base/config'];+ const { iAmRecorder, inviteAppName } = state['features/base/config'];const addPeopleEnabled = isAddPeopleEnabled(state);const dialOutEnabled = isDialOutEnabled(state);const hideInviteContacts = iAmRecorder || (!addPeopleEnabled && !dialOutEnabled);@@ -200,6 +206,7 @@ function mapStateToProps(state, ownProps) {_invitationText: getInviteText({ state,phoneNumber,t: ownProps.t }),+ _inviteAppName: inviteAppName,_inviteContactsVisible: interfaceConfig.ENABLE_DIAL_OUT && !hideInviteContacts,_inviteUrl: getInviteURL(state),_liveStreamViewURL: