Improve profile loading, add feeds util, add deriveIsDeleted, loosen up delta guess

This commit is contained in:
Jon Staab
2024-10-24 14:19:32 -07:00
parent bd8aaa8685
commit 0348b4166e
4 changed files with 17 additions and 5 deletions
+3 -4
View File
@@ -1,7 +1,7 @@
import {derived, readable} from 'svelte/store'
import {readProfile, displayProfile, displayPubkey, PROFILE} from '@welshman/util'
import type {SubscribeRequestWithHandlers} from "@welshman/net"
import type {PublishedProfile, TrustedEvent} from "@welshman/util"
import type {PublishedProfile} from "@welshman/util"
import {deriveEventsMapped, withGetter} from '@welshman/store'
import {repository, load} from './core'
import {collection} from './collection'
@@ -34,9 +34,8 @@ export const {
// better selections the moment we have a result, even if it's outdated
await new Promise<void>(resolve => {
loadRelaySelections(pubkey, {
onEvent: (event: TrustedEvent) => {
resolve()
}
onEvent: () => resolve(),
onComplete: () => resolve(),
})
})