mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-04-02 17:08:12 +02:00
minor ui improvements in menus
This commit is contained in:
parent
aaacf95495
commit
18d00479bf
@ -712,6 +712,11 @@ Future<void> channelMenuUI(Store node) async {
|
||||
|
||||
case 3:
|
||||
clearScreen();
|
||||
if( userPrivateKey == "") {
|
||||
printWarning("Since no user private key has been supplied, you cannot create channels or send any event. Invoke with --prikey \n");
|
||||
justShowedChannels = false;
|
||||
break;
|
||||
}
|
||||
print("Creating new channel. Kindly enter info about channel: \n");
|
||||
await createPublicChannel(node);
|
||||
clearScreen();
|
||||
@ -1044,6 +1049,12 @@ Future<void> encryptedChannelMenuUI(Store node) async {
|
||||
|
||||
case 3:
|
||||
clearScreen();
|
||||
if( userPrivateKey == "") {
|
||||
printWarning("Since no user private key has been supplied, you cannot create channels or send any event. Invoke with --prikey \n");
|
||||
justShowedChannels = false;
|
||||
break;
|
||||
}
|
||||
|
||||
print("Creating new encrypted channel. Kindly enter info about channel: \n");
|
||||
await createEncryptedChannel(node);
|
||||
justShowedChannels = false;
|
||||
@ -1086,6 +1097,8 @@ Future<void> PrivateMenuUI(Store node) async {
|
||||
// in case the program was invoked with --pubkey, then user can't send messages
|
||||
if( userPrivateKey == "") {
|
||||
print("Since no private key has been supplied, messages and replies can't be sent. Invoke with --prikey \n");
|
||||
justShowedChannels = false;
|
||||
clearScreen();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -759,12 +759,6 @@ class Store {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Will create a entry in encryptedChannels ( if one does not already exist)
|
||||
* Returns id of channel if one is created, null otherwise.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Will create a entry in encryptedChannels ( if one does not already exist)
|
||||
* Returns id of channel if one is created, null otherwise.
|
||||
|
Loading…
x
Reference in New Issue
Block a user