Rework storage adapters

This commit is contained in:
Jon Staab
2025-04-16 12:53:49 -07:00
parent 5785710137
commit c5ea7edf6b
6 changed files with 273 additions and 114 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ export const {
export const displayProfileByPubkey = (pubkey: string | undefined) =>
pubkey ? displayProfile(profilesByPubkey.get().get(pubkey), displayPubkey(pubkey)) : ""
export const deriveProfileDisplay = (pubkey: string | undefined) =>
export const deriveProfileDisplay = (pubkey: string | undefined, relays: string[] = []) =>
pubkey
? derived(deriveProfile(pubkey), $profile => displayProfile($profile, displayPubkey(pubkey)))
? derived(deriveProfile(pubkey, relays), $profile => displayProfile($profile, displayPubkey(pubkey)))
: readable("")