Search Improvements

Adds ability to send to users who only have a lnurl set.

Now shows users without any payment info, but disabled and greyed out.
This commit is contained in:
benthecarman
2024-01-13 01:15:53 +00:00
committed by benthecarman
parent ae7c03114e
commit f3ef3140bb
3 changed files with 56 additions and 36 deletions

View File

@@ -326,6 +326,7 @@ export type PseudoContact = {
name: string;
hexpub: string;
ln_address?: string;
lnurl?: string;
image_url?: string;
};
@@ -372,6 +373,7 @@ export function profileToPseudoContact(profile: NostrProfile): PseudoContact {
};
contact.name = content.display_name || content.name || profile.pubkey;
contact.ln_address = content.lud16 || undefined;
contact.lnurl = content.lud06 || undefined;
contact.image_url = content.picture || undefined;
return contact as PseudoContact;
}