Optimistically load messaging relays

This commit is contained in:
Jon Staab
2026-02-09 16:57:44 -08:00
parent bb15c9e2d0
commit f80aba33f1
3 changed files with 27 additions and 9 deletions
+5
View File
@@ -5,6 +5,7 @@
import {goto} from "$app/navigation"
import {tryCatch, uniq} from "@welshman/lib"
import {fromNostrURI} from "@welshman/util"
import {loadMessagingRelayList} from "@welshman/app"
import {preventDefault} from "@lib/html"
import Field from "@lib/components/Field.svelte"
import Button from "@lib/components/Button.svelte"
@@ -33,6 +34,10 @@
let pubkeys: string[] = $state([])
$effect(() => {
pubkeys.forEach(pubkey => loadMessagingRelayList(pubkey))
})
onMount(() => {
return term.subscribe(t => {
if (t.match(/^[0-9a-f]{64}$/)) {