diff --git a/ROADMAP.md b/ROADMAP.md index 3bdad007..8e94c04e 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,6 +1,13 @@ # Current - [ ] Collapse relaycard and relaycardsimple? +- [ ] Onboarding + - [ ] Create my own version of nostr.how and extension explanation + - [ ] Move extension suggestion to later in the app, maybe a notification if they don't have one installed + - [ ] Reassure user that if they don't copy the key now they can get it later in settings + - [ ] Design empty state for messages + - [ ] Add copy to explain that chat is public, dms are encrypted + - [ ] Add QR code that pre-fills follows and relays for a new user - [ ] Review sampleRelays, seems like we shouldn't be shuffling - [ ] Go over onboarding process, suggest some good relays for newcomers diff --git a/src/agent/social.ts b/src/agent/social.ts index b964cb43..ddf408d8 100644 --- a/src/agent/social.ts +++ b/src/agent/social.ts @@ -1,4 +1,4 @@ -import {uniq} from 'ramda' +import {uniq, without} from 'ramda' import {Tags} from 'src/util/nostr' import database from 'src/agent/database' import user from 'src/agent/user' @@ -9,7 +9,7 @@ export const getFollows = pubkey => export const getNetwork = pubkey => { const follows = getFollows(pubkey) - return uniq(follows.concat(follows.flatMap(getFollows))) + return uniq(without(follows, follows.flatMap(getFollows))) } export const getUserFollows = (): Array => @@ -18,5 +18,5 @@ export const getUserFollows = (): Array => export const getUserNetwork = () => { const follows = getUserFollows() - return uniq(follows.concat(follows.flatMap(getFollows))) + return uniq(without(follows, follows.flatMap(getFollows))) }