From ceca00b573fbe1b17810094145b22ac1fa4e2b6e Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 5 May 2021 11:11:32 -0500 Subject: [PATCH] fix: Fixes welcome page add calendar link. Fixes #9132 --- react/features/invite/functions.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/react/features/invite/functions.js b/react/features/invite/functions.js index 83ee9a48e..528231aef 100644 --- a/react/features/invite/functions.js +++ b/react/features/invite/functions.js @@ -558,7 +558,7 @@ export function getShareInfoText( .catch(error => logger.error('Error fetching numbers or conferenceID', error)) .then(defaultDialInNumber => { - let dialInfoPageUrl = getDialInfoPageURL(state); + let dialInfoPageUrl = getDialInfoPageURL(state, room); if (useHtml) { dialInfoPageUrl @@ -580,11 +580,12 @@ export function getShareInfoText( * Generates the URL for the static dial in info page. * * @param {Object} state - The state from the Redux store. + * @param {string?} roomName - The conference name. Optional name, if missing will be extracted from state. * @returns {string} */ -export function getDialInfoPageURL(state: Object) { +export function getDialInfoPageURL(state: Object, roomName: ?string) { const { didPageUrl } = state['features/dynamic-branding']; - const conferenceName = getRoomName(state); + const conferenceName = roomName ?? getRoomName(state); const { locationURL } = state['features/base/connection']; const { href } = locationURL; const room = _decodeRoomURI(conferenceName);