Browse Source

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

master
damencho 4 years ago
parent
commit
ceca00b573
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      react/features/invite/functions.js

+ 4
- 3
react/features/invite/functions.js View File

558
             .catch(error =>
558
             .catch(error =>
559
                 logger.error('Error fetching numbers or conferenceID', error))
559
                 logger.error('Error fetching numbers or conferenceID', error))
560
             .then(defaultDialInNumber => {
560
             .then(defaultDialInNumber => {
561
-                let dialInfoPageUrl = getDialInfoPageURL(state);
561
+                let dialInfoPageUrl = getDialInfoPageURL(state, room);
562
 
562
 
563
                 if (useHtml) {
563
                 if (useHtml) {
564
                     dialInfoPageUrl
564
                     dialInfoPageUrl
580
  * Generates the URL for the static dial in info page.
580
  * Generates the URL for the static dial in info page.
581
  *
581
  *
582
  * @param {Object} state - The state from the Redux store.
582
  * @param {Object} state - The state from the Redux store.
583
+ * @param {string?} roomName - The conference name. Optional name, if missing will be extracted from state.
583
  * @returns {string}
584
  * @returns {string}
584
  */
585
  */
585
-export function getDialInfoPageURL(state: Object) {
586
+export function getDialInfoPageURL(state: Object, roomName: ?string) {
586
     const { didPageUrl } = state['features/dynamic-branding'];
587
     const { didPageUrl } = state['features/dynamic-branding'];
587
-    const conferenceName = getRoomName(state);
588
+    const conferenceName = roomName ?? getRoomName(state);
588
     const { locationURL } = state['features/base/connection'];
589
     const { locationURL } = state['features/base/connection'];
589
     const { href } = locationURL;
590
     const { href } = locationURL;
590
     const room = _decodeRoomURI(conferenceName);
591
     const room = _decodeRoomURI(conferenceName);

Loading…
Cancel
Save