diff --git a/react/features/invite/components/info-dialog/InfoDialog.web.js b/react/features/invite/components/info-dialog/InfoDialog.web.js index 067e01e52..02a54ae4c 100644 --- a/react/features/invite/components/info-dialog/InfoDialog.web.js +++ b/react/features/invite/components/info-dialog/InfoDialog.web.js @@ -261,6 +261,17 @@ class InfoDialog extends Component { return null; } + /** + * Generates the URL for the static dial in info page. + * + * @private + * @returns {string} + */ + _getDialInfoPageURL() { + return `${window.location.origin}/static/dialInInfo.html?room=${ + encodeURIComponent(this.props._conferenceName)}`; + } + /** * Creates a message describing how to dial in to the conference. * @@ -268,7 +279,7 @@ class InfoDialog extends Component { * @returns {string} */ _getTextToCopy() { - const { _conferenceName, t } = this.props; + const { t } = this.props; let invite = t('info.inviteURL', { url: this.props._inviteURL @@ -280,8 +291,7 @@ class InfoDialog extends Component { conferenceID: this.props._dialIn.conferenceID }); const moreNumbers = t('info.invitePhoneAlternatives', { - url: `${window.location.origin}/static/dialInInfo.html?room=${ - encodeURIComponent(_conferenceName)}` + url: this._getDialInfoPageURL() }); invite = `${invite}\n${dial}\n${moreNumbers}`; @@ -377,8 +387,7 @@ class InfoDialog extends Component { phoneNumber = { this.state.phoneNumber } /> { this.props.t('info.moreNumbers') }