Browse Source

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

j8
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,7 +558,7 @@ export function getShareInfoText(
558 558
             .catch(error =>
559 559
                 logger.error('Error fetching numbers or conferenceID', error))
560 560
             .then(defaultDialInNumber => {
561
-                let dialInfoPageUrl = getDialInfoPageURL(state);
561
+                let dialInfoPageUrl = getDialInfoPageURL(state, room);
562 562
 
563 563
                 if (useHtml) {
564 564
                     dialInfoPageUrl
@@ -580,11 +580,12 @@ export function getShareInfoText(
580 580
  * Generates the URL for the static dial in info page.
581 581
  *
582 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 584
  * @returns {string}
584 585
  */
585
-export function getDialInfoPageURL(state: Object) {
586
+export function getDialInfoPageURL(state: Object, roomName: ?string) {
586 587
     const { didPageUrl } = state['features/dynamic-branding'];
587
-    const conferenceName = getRoomName(state);
588
+    const conferenceName = roomName ?? getRoomName(state);
588 589
     const { locationURL } = state['features/base/connection'];
589 590
     const { href } = locationURL;
590 591
     const room = _decodeRoomURI(conferenceName);

Loading…
Cancel
Save