mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-06-29 02:03:19 +02:00
removed channels from menu
because the replies feature is messing with nostr console logic right now
This commit is contained in:
@ -674,10 +674,9 @@ Future<void> mainMenuUi(Store node) async {
|
|||||||
if( numDirectRoomsPrinted > 0)
|
if( numDirectRoomsPrinted > 0)
|
||||||
print("\n");
|
print("\n");
|
||||||
|
|
||||||
int numChannelsPrinted = node.printChannelsOverview(20, showNotifications);
|
//int numChannelsPrinted = node.printChannelsOverview(20, showNotifications);
|
||||||
|
|
||||||
if( numChannelsPrinted > 0)
|
//if( numChannelsPrinted > 0) print("\n");
|
||||||
print("\n");
|
|
||||||
|
|
||||||
bool userContinue = true;
|
bool userContinue = true;
|
||||||
while(userContinue) {
|
while(userContinue) {
|
||||||
@ -687,7 +686,7 @@ Future<void> mainMenuUi(Store node) async {
|
|||||||
// the main menu
|
// the main menu
|
||||||
int option = showMenu(['Display feed', // 1
|
int option = showMenu(['Display feed', // 1
|
||||||
'Post/Reply/Like', // 2
|
'Post/Reply/Like', // 2
|
||||||
'Public Channels', // 3
|
// 'Public Channels', // 3
|
||||||
'Private Messages', // 4
|
'Private Messages', // 4
|
||||||
'Other Options', // 5
|
'Other Options', // 5
|
||||||
'Quit'], // 6
|
'Quit'], // 6
|
||||||
@ -731,19 +730,19 @@ Future<void> mainMenuUi(Store node) async {
|
|||||||
await sendReplyPostLike(node, replyToId, replyKind, content);
|
await sendReplyPostLike(node, replyToId, replyKind, content);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 9:
|
||||||
await channelMenuUI(node);
|
await channelMenuUI(node);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 3:
|
||||||
await PrivateMenuUI(node);
|
await PrivateMenuUI(node);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 4:
|
||||||
await otherMenuUi(node);
|
await otherMenuUi(node);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 5:
|
||||||
default:
|
default:
|
||||||
userContinue = false;
|
userContinue = false;
|
||||||
String authorName = getAuthorName(userPublicKey);
|
String authorName = getAuthorName(userPublicKey);
|
||||||
|
Reference in New Issue
Block a user