From f279bd69d7a41116450de4ecf1123e3727cd4106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 24 Aug 2023 12:09:10 +0200 Subject: [PATCH] Remove unnecessary call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/widget.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/widget.ts b/src/widget.ts index b948f575..aec8fd3d 100644 --- a/src/widget.ts +++ b/src/widget.ts @@ -23,7 +23,6 @@ import type { MatrixClient } from "matrix-js-sdk/src/client"; import type { IWidgetApiRequest } from "matrix-widget-api"; import { LazyEventEmitter } from "./LazyEventEmitter"; import { getUrlParams } from "./UrlParams"; -import { Config } from "./config/Config"; // Subset of the actions in matrix-react-sdk export enum ElementWidgetActions { @@ -164,9 +163,6 @@ export const widget: WidgetHelpers | null = (() => { const clientPromise = new Promise((resolve) => { (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(); resolve(client); })();