Rework storage adapters
This commit is contained in:
@@ -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("")
|
||||
|
||||
Reference in New Issue
Block a user