diff --git a/README.md b/README.md index 3374028f..65240203 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ If you like Coracle and want to support its development, you can donate sats via - [ ] Attachments (a tag w/content type and url) - [ ] Linkify bech32 entities w/ NIP 21 https://github.com/nostr-protocol/nips/blob/master/21.md - [ ] Sign in as user with one click to view things from their pubkey's perspective - do this with multiple accounts +- [ ] QR code generation/scanner to share nprofile https://cdn.jb55.com/s/d966a729777c2021.MP4 # Missions @@ -73,6 +74,7 @@ If you like Coracle and want to support its development, you can donate sats via - [ ] Implement gossip model https://bountsr.org/code/2023/02/03/gossip-model.html - [ ] Add nip 05 to calculation + - [ ] Add connection failures to calculation - [ ] Make feeds page customizable. This could potentially use the "lists" NIP - [ ] Show notification at top of feeds: "Showing notes from 3 relays". Click to customize. - [ ] Click through on relays page to view a feed for only that relay. diff --git a/src/App.svelte b/src/App.svelte index f0a5e137..1044764a 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -13,7 +13,7 @@ import {displayPerson, isLike} from 'src/util/nostr' import {timedelta, shuffle, now, sleep} from 'src/util/misc' import cmd from 'src/agent/cmd' - import {user, getRelays} from 'src/agent/helpers' + import {user, getUserRelays} from 'src/agent/helpers' import database from 'src/agent/database' import keys from 'src/agent/keys' import network from 'src/agent/network' @@ -65,6 +65,7 @@ menuIsOpen.set(false) } + const {ready} = database const {lastCheckedAlerts, mostRecentAlert} = alerts const {lastCheckedByPubkey, mostRecentByPubkey} = messages @@ -97,7 +98,7 @@ const alertSlowConnections = () => { // Only notify about relays the user is actually subscribed to - const relayUrls = pluck('url', getRelays()) + const relayUrls = pluck('url', getUserRelays('read')) // Prune connections we haven't used in a while pool.getConnections() @@ -201,6 +202,7 @@
+ {#if $ready}
@@ -234,6 +236,7 @@
+ {/if}