From b91c995a1ceb35506415a2357637fdfd63258930 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 17 Oct 2024 16:57:09 -0700 Subject: [PATCH] Add keys section, discover more relays, allow custom relays --- src/app/commands.ts | 4 +-- src/app/components/PeopleItem.svelte | 2 +- src/app/components/RelayAdd.svelte | 12 +++++++ src/lib/components/FieldInline.svelte | 16 ++++----- src/routes/settings/profile/+page.svelte | 44 ++++++++++++++++++++++-- 5 files changed, 63 insertions(+), 15 deletions(-) diff --git a/src/app/commands.ts b/src/app/commands.ts index 55ca0852..21dcb581 100644 --- a/src/app/commands.ts +++ b/src/app/commands.ts @@ -52,6 +52,7 @@ import { INDEXER_RELAYS, loadMembership, loadSettings, + getDefaultPubkeys, } from "@app/state" // Utils @@ -101,7 +102,7 @@ export const loadUserData = ( // Load followed profiles slowly in the background without clogging other stuff up promise.then(async () => { - for (const pubkeys of chunk(50, getFollows(pubkey))) { + for (const pubkeys of chunk(50, getDefaultPubkeys())) { await sleep(300) for (const pubkey of pubkeys) { @@ -174,7 +175,6 @@ export const removeRoomMembership = async (url: string, room: string) => { export const setRelayPolicy = (url: string, read: boolean, write: boolean) => { const list = get(userRelaySelections) || makeList({kind: RELAYS}) - const tags = getRelayTags(getListTags(list)).filter(t => normalizeRelayUrl(t[1]) !== url) if (read && write) { diff --git a/src/app/components/PeopleItem.svelte b/src/app/components/PeopleItem.svelte index c379108d..685c2a52 100644 --- a/src/app/components/PeopleItem.svelte +++ b/src/app/components/PeopleItem.svelte @@ -55,7 +55,7 @@