diff --git a/bin/nostr_console.dart b/bin/nostr_console.dart index 7967b7f..e2424c6 100644 --- a/bin/nostr_console.dart +++ b/bin/nostr_console.dart @@ -380,21 +380,20 @@ Future main(List arguments) async { } // get only limited number of contacts otherwise relays get less responsive - int maxContactsFetched = 500; + int maxContactsFetched = 700; if( contacts.length > maxContactsFetched) { int i = 0; - contacts.retainWhere((element) => i++ > maxContactsFetched); // retain only first 200, whichever they may be + contacts.retainWhere((element) => i++ < maxContactsFetched); // retain only first 200, whichever they may be } getMultiUserEvents(gListRelayUrls2, contacts.union(gDefaultFollows).union(pTags).difference(usersFetched), 4 * limitPerSubscription, getSecondsDaysAgo(limitOthersEvents)); usersFetched = usersFetched.union(gDefaultFollows).union(contacts).union(pTags); // get meta events of all users fetched - getMultiUserEvents(gListRelayUrls1, usersFetched, 4 * limitPerSubscription, getSecondsDaysAgo(limitSelfEvents*2), {0,3}); + getMultiUserEvents(gListRelayUrls1, usersFetched, 10 * limitPerSubscription, getSecondsDaysAgo(limitSelfEvents*100), {0,3}); //print("fetched meta of ${usersFetched.length}"); - void resetRelays() { relays.closeAll(); @@ -421,12 +420,12 @@ Future main(List arguments) async { String req = '["REQ","latest_live_all",{"limit":40000,"kinds":[0,1,3,4,5,6,7,40,41,42,104,140,141,142],"since":${getTimeSecondsAgo(gSecsLatestLive).toString()}}]'; sendRequest(gListRelayUrls1, req); + //getMultiUserEvents(gListRelayUrls1, usersFetched, 10 * limitPerSubscription, getSecondsDaysAgo(limitSelfEvents*100), {0,3}); // Create tree from all events that's have yet been received/accumulated Store node = getTree(initialEvents); gStore = node; - - clearEvents(); + mainMenuUi(node); }); }); diff --git a/lib/console_ui.dart b/lib/console_ui.dart index 59c48c1..8bc3f60 100644 --- a/lib/console_ui.dart +++ b/lib/console_ui.dart @@ -1325,7 +1325,7 @@ Future socialMenuUi(Store node) async { switch(option) { case 1: - bool selectorTrees_followActionsNoNotifications (Tree t) => t.treeSelectorUserPostAndLike(getFollows( userPublicKey).union(gDefaultFollows), enableNotifications: false); + bool selectorTrees_followActionsNoNotifications (Tree t) => t.treeSelectorUserPostAndLike(getFollows( userPublicKey).union(gDefaultFollows).union({userPublicKey}), enableNotifications: false); node.printStoreTrees(0, DateTime.now().subtract(Duration(hours:gHoursDefaultPrint)), selectorTrees_followActionsNoNotifications); await processAnyIncomingEvents(node, true); break; diff --git a/pubspec.yaml b/pubspec.yaml index 9867806..6cba286 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: nostr_console description: A multi-platform nostr client built for terminal/console -version: 0.3.4-beta +version: 0.3.5-beta homepage: https://github.com/vishalxl/nostr_console @@ -9,6 +9,8 @@ homepage: https://github.com/vishalxl/nostr_console # improved highlighted events code in 2->1 # in 2->1 printed popular accounts with follows # difficulty limit set to 32 +# added three new relays and removed some older ones +# fixed fetching of contact names ( now all are fetched whereas previously they werent) # 0.3.4 # improved logic that only new events from follows are shown; this reduces the flood of notifications seen