File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ require("./index.scss");
2020import * as qs from 'querystring' ;
2121import { Capability , WidgetApi } from "matrix-react-sdk/src/widgets/WidgetApi" ;
2222import SdkConfig from "matrix-react-sdk/src/SdkConfig" ;
23+ import { loadConfig , preparePlatform } from "../initial-load" ;
2324
2425// Dev note: we use raw JS without many dependencies to reduce bundle size.
2526// We do not need all of React to render a Jitsi conference.
@@ -60,8 +61,12 @@ let widgetApi: WidgetApi;
6061 await widgetApi . setAlwaysOnScreen ( false ) ;
6162 } ) ;
6263
64+ // Bootstrap ourselves for loading the script and such
65+ preparePlatform ( ) ;
66+ await loadConfig ( ) ;
67+
6368 // Populate the Jitsi params now
64- jitsiDomain = qsParam ( 'conferenceDomain' , false ) ;
69+ jitsiDomain = qsParam ( 'conferenceDomain' , true ) || SdkConfig . get ( ) [ 'jitsi' ] [ 'preferredDomain' ] ;
6570 conferenceId = qsParam ( 'conferenceId' ) ;
6671 displayName = qsParam ( 'displayName' , true ) ;
6772 avatarUrl = qsParam ( 'avatarUrl' , true ) ; // http not mxc
You can’t perform that action at this time.
0 commit comments