mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
Remove unnecessary call
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -23,7 +23,6 @@ import type { MatrixClient } from "matrix-js-sdk/src/client";
|
|||||||
import type { IWidgetApiRequest } from "matrix-widget-api";
|
import type { IWidgetApiRequest } from "matrix-widget-api";
|
||||||
import { LazyEventEmitter } from "./LazyEventEmitter";
|
import { LazyEventEmitter } from "./LazyEventEmitter";
|
||||||
import { getUrlParams } from "./UrlParams";
|
import { getUrlParams } from "./UrlParams";
|
||||||
import { Config } from "./config/Config";
|
|
||||||
|
|
||||||
// Subset of the actions in matrix-react-sdk
|
// Subset of the actions in matrix-react-sdk
|
||||||
export enum ElementWidgetActions {
|
export enum ElementWidgetActions {
|
||||||
@@ -164,9 +163,6 @@ export const widget: WidgetHelpers | null = (() => {
|
|||||||
|
|
||||||
const clientPromise = new Promise<MatrixClient>((resolve) => {
|
const clientPromise = new Promise<MatrixClient>((resolve) => {
|
||||||
(async () => {
|
(async () => {
|
||||||
// wait for the config file to be ready (we load very early on so it might not
|
|
||||||
// be otherwise)
|
|
||||||
await Config.init();
|
|
||||||
await client.startClient();
|
await client.startClient();
|
||||||
resolve(client);
|
resolve(client);
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user