Fix a few bugs, improve storage adapter

This commit is contained in:
Jon Staab
2024-09-04 15:04:47 -07:00
parent b8e69154af
commit 9b44aac584
8 changed files with 64 additions and 41 deletions
+9 -2
View File
@@ -58,8 +58,15 @@ export const {
export const deriveHandleForPubkey = (pubkey: string, request: Partial<SubscribeRequest> = {}) =>
derived(
[handlesByNip05, deriveProfile(pubkey, request)],
([$handlesByNip05, $profile]) =>
$profile?.nip05 ? $handlesByNip05.get($profile?.nip05) : undefined
([$handlesByNip05, $profile]) => {
if (!$profile?.nip05) {
return undefined
}
loadHandle($profile.nip05)
return $handlesByNip05.get($profile?.nip05)
}
)
export const displayHandle = (handle: Handle) =>