mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-07-14 14:22:22 +02:00
added lightning prefix in profile adds
This commit is contained in:
@ -335,20 +335,20 @@ void printProfile(Store node, String profilePubkey) {
|
|||||||
List<int>? typesAndModule = getTypeAndModule(lud06);
|
List<int>? typesAndModule = getTypeAndModule(lud06);
|
||||||
if( typesAndModule != null) {
|
if( typesAndModule != null) {
|
||||||
print("Printing lud06 LNURL as QR:\n\n");
|
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) {
|
} catch(e) {
|
||||||
print("Could not generate qr code for the lnurl given. \n");
|
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) {
|
if( lud16.length > gMinLud06AddressLength) {
|
||||||
try {
|
try {
|
||||||
List<int>? typesAndModule = getTypeAndModule(lud16);
|
List<int>? typesAndModule = getTypeAndModule(lud16);
|
||||||
if( typesAndModule != null) {
|
if( typesAndModule != null) {
|
||||||
print("Printing lud16 address as QR:\n\n");
|
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) {
|
} catch(e) {
|
||||||
print("Could not generate qr code for the given address.\n");
|
print("Could not generate qr code for the given address.\n");
|
||||||
|
@ -17,6 +17,7 @@ homepage: https://github.com/vishalxl/nostr_console
|
|||||||
# after tagging
|
# after tagging
|
||||||
# improved notification count and display with recent clipped-thread change
|
# 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
|
# 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
|
# 0.3.0
|
||||||
|
Reference in New Issue
Block a user