added lightning prefix in profile adds

This commit is contained in:
Vishal 2022-12-27 12:41:35 +05:30
parent e11c374d66
commit 44ffb62c05
2 changed files with 4 additions and 3 deletions

View File

@ -335,20 +335,20 @@ void printProfile(Store node, String profilePubkey) {
List<int>? typesAndModule = getTypeAndModule(lud06);
if( typesAndModule != null) {
print("Printing lud06 LNURL as QR:\n\n");
print(getPubkeyAsQrString(lud06, typesAndModule[0], typesAndModule[1]));
print(getPubkeyAsQrString("lightning:" + lud06, typesAndModule[0], typesAndModule[1]));
}
} catch(e) {
print("Could not generate qr code for the lnurl given. \n");
}
}
// print LNRUL lud06 if it exists
// print LNRUL lud16 if it exists
if( lud16.length > gMinLud06AddressLength) {
try {
List<int>? typesAndModule = getTypeAndModule(lud16);
if( typesAndModule != null) {
print("Printing lud16 address as QR:\n\n");
print(getPubkeyAsQrString(lud16, typesAndModule[0], typesAndModule[1]));
print(getPubkeyAsQrString("lightning:" + lud16, typesAndModule[0], typesAndModule[1]));
}
} catch(e) {
print("Could not generate qr code for the given address.\n");

View File

@ -17,6 +17,7 @@ homepage: https://github.com/vishalxl/nostr_console
# after tagging
# improved notification count and display with recent clipped-thread change
# fixed issue where had to go to main menu from SN menu to get notifications ; related: also got notifications in other menus so now on following someone, that event is processed in this menu itself
# added ligning prefix in profile
# 0.3.0