move matrix init

This commit is contained in:
2024-11-05 02:38:34 +01:00
parent d68f1b19fa
commit c79237ce22
2 changed files with 9 additions and 5 deletions

View File

@@ -29,7 +29,6 @@
import { restoreFromFile } from "$lib/backup/backup";
import { goto } from "$app/navigation";
import { hotkeys } from "$lib/title";
import { initMatrixClient } from "$lib/chat/chat";
const locale =
((browser && localStorage.getItem("locale")) as Locales) || detectLocale();
@@ -66,9 +65,6 @@
if (browser && $userPreferences.autoConnect && (await canAutoConnect())) {
await initSerial();
}
if (browser) {
await initMatrixClient();
}
if (data.importFile) {
restoreFromFile(data.importFile);