forked from coracle/flotilla
Optimistically load messaging relays
This commit is contained in:
@@ -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}$/)) {
|
||||
|
||||
Reference in New Issue
Block a user