diff --git a/src/app/components/AlertAdd.svelte b/src/app/components/AlertAdd.svelte index 98a8d6d..dc8fcb9 100644 --- a/src/app/components/AlertAdd.svelte +++ b/src/app/components/AlertAdd.svelte @@ -60,7 +60,6 @@ let loading = $state(false) let cron = $state(WEEKLY) - let claim = $state("") let email = $state($alerts.map(a => getTagValue("email", a.tags)).filter(identity)[0] || "") const back = () => history.back() @@ -110,6 +109,7 @@ loading = true try { + const claim = url ? await requestRelayClaim(url) : undefined const claims = claim ? {[url]: claim} : {} const feed = makeIntersectionFeed(feedFromFilters(filters), makeRelayFeed(url)) const description = `for ${displayList(display)} on ${displayRelayUrl(url)}` @@ -179,14 +179,6 @@ if (!canSendPushNotifications()) { channel = "email" } - - if (url) { - requestRelayClaim(url).then(code => { - if (code) { - claim = code - } - }) - } }) @@ -268,22 +260,6 @@ {/snippet} - - {#snippet label()} - Invite Code - {/snippet} - {#snippet input()} - - - - {/snippet} - {#snippet info()} - - To get notifications from private spaces, please provide an invite code which grants access - to the space. - - {/snippet} -
Invite Code
- To get notifications from private spaces, please provide an invite code which grants access - to the space. -