Use space as blossom server if supported

This commit is contained in:
Jon Staab
2025-04-29 12:24:20 -07:00
parent 5a7750a91b
commit 6ddba63ff9
7 changed files with 98 additions and 38 deletions
+4
View File
@@ -10,6 +10,7 @@
import SpaceAuthError from "@app/components/SpaceAuthError.svelte"
import {pushToast} from "@app/toast"
import {pushModal} from "@app/modal"
import {getUploadUrl} from "@app/editor"
import {setChecked} from "@app/notifications"
import {checkRelayConnection, checkRelayAuth, checkRelayAccess} from "@app/commands"
import {decodeRelay, userRoomsByUrl} from "@app/state"
@@ -51,6 +52,9 @@
onMount(() => {
checkConnection()
// Prime our cache so inputs show up quickly
getUploadUrl(url)
const relays = [url]
const since = ago(WEEK)
const controller = new AbortController()