fix: Fixes welcome page add calendar link. Fixes #9132

This commit is contained in:
damencho 2021-05-05 11:11:32 -05:00 committed by Дамян Минков
parent 1c6677f523
commit ceca00b573
1 changed files with 4 additions and 3 deletions

View File

@ -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);