Skip to content

Commit 350a52b

Browse files
committed
Remove useless app preloading from Jitsi widget wrapper
We should always have conference information, and if we don't then the widget is invalid.
1 parent c4bece1 commit 350a52b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/vector/jitsi/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ require("./index.scss");
2020
import * as qs from 'querystring';
2121
import { Capability, WidgetApi } from "matrix-react-sdk/src/widgets/WidgetApi";
2222
import SdkConfig from "matrix-react-sdk/src/SdkConfig";
23-
import { loadConfig, preparePlatform } from "../initial-load";
2423

2524
// Dev note: we use raw JS without many dependencies to reduce bundle size.
2625
// We do not need all of React to render a Jitsi conference.
@@ -61,12 +60,8 @@ let widgetApi: WidgetApi;
6160
await widgetApi.setAlwaysOnScreen(false);
6261
});
6362

64-
// Bootstrap ourselves for loading the script and such
65-
preparePlatform();
66-
await loadConfig();
67-
6863
// Populate the Jitsi params now
69-
jitsiDomain = qsParam('conferenceDomain', true) || SdkConfig.get()['jitsi']['preferredDomain'];
64+
jitsiDomain = qsParam('conferenceDomain', false);
7065
conferenceId = qsParam('conferenceId');
7166
displayName = qsParam('displayName', true);
7267
avatarUrl = qsParam('avatarUrl', true); // http not mxc

0 commit comments

Comments
 (0)