Add keys section, discover more relays, allow custom relays

This commit is contained in:
Jon Staab
2024-10-17 16:57:09 -07:00
parent 441d69e40a
commit b91c995a1c
5 changed files with 63 additions and 15 deletions
+2 -2
View File
@@ -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) {