Move connection check

This commit is contained in:
Jon Staab
2024-11-07 15:19:19 -08:00
parent ba54615a3f
commit 1b15767a17
2 changed files with 16 additions and 8 deletions
-8
View File
@@ -22,9 +22,7 @@
roomsByUrl,
GENERAL,
} from "@app/state"
import {checkRelayConnection, checkRelayAuth} from "@app/commands"
import {pushModal} from "@app/modal"
import {pushToast} from "@app/toast"
import {makeSpacePath} from "@app/routes"
export let url
@@ -73,12 +71,6 @@
onMount(async () => {
replaceState = Boolean(element.closest(".drawer"))
const error = (await checkRelayConnection(url)) || (await checkRelayAuth(url))
if (error) {
pushToast({theme: "error", message: error})
}
})
</script>