Wait for auth before requesting stuff

This commit is contained in:
Jon Staab
2024-08-19 10:26:25 -07:00
parent cf41ea58fd
commit 4d7c880576
4 changed files with 25 additions and 14 deletions

View File

@@ -52,8 +52,7 @@ export const updateList = async (kind: number, modifyTags: ModifyTags) => {
const $pk = pk.get()!
const $signer = signer.get()!
const [prev] = repository.query([{kinds: [kind], authors: [$pk]}])
const userRelays = getRelaySelectionsByPubkey().get($pk)
const relays = [...INDEXER_RELAYS, ...getWriteRelayUrls(userRelays)]
const relays = getWriteRelayUrls(getRelaySelectionsByPubkey().get($pk))
// Preserve content if we have it
const event = prev