@@ -380,21 +380,20 @@ Future<void> main(List<String> arguments) async {
380
380
}
381
381
382
382
// get only limited number of contacts otherwise relays get less responsive
383
- int maxContactsFetched = 500 ;
383
+ int maxContactsFetched = 700 ;
384
384
if ( contacts.length > maxContactsFetched) {
385
385
int i = 0 ;
386
- contacts.retainWhere ((element) => i++ > maxContactsFetched); // retain only first 200, whichever they may be
386
+ contacts.retainWhere ((element) => i++ < maxContactsFetched); // retain only first 200, whichever they may be
387
387
}
388
388
389
389
getMultiUserEvents (gListRelayUrls2, contacts.union (gDefaultFollows).union (pTags).difference (usersFetched), 4 * limitPerSubscription, getSecondsDaysAgo (limitOthersEvents));
390
390
usersFetched = usersFetched.union (gDefaultFollows).union (contacts).union (pTags);
391
391
392
392
// get meta events of all users fetched
393
- getMultiUserEvents (gListRelayUrls1, usersFetched, 4 * limitPerSubscription, getSecondsDaysAgo (limitSelfEvents* 2 ), {0 ,3 });
393
+ getMultiUserEvents (gListRelayUrls1, usersFetched, 10 * limitPerSubscription, getSecondsDaysAgo (limitSelfEvents* 100 ), {0 ,3 });
394
394
//print("fetched meta of ${usersFetched.length}");
395
395
396
396
397
-
398
397
void resetRelays () {
399
398
relays.closeAll ();
400
399
@@ -421,12 +420,12 @@ Future<void> main(List<String> arguments) async {
421
420
422
421
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 ()}}]' ;
423
422
sendRequest (gListRelayUrls1, req);
423
+ //getMultiUserEvents(gListRelayUrls1, usersFetched, 10 * limitPerSubscription, getSecondsDaysAgo(limitSelfEvents*100), {0,3});
424
424
425
425
// Create tree from all events that's have yet been received/accumulated
426
426
Store node = getTree (initialEvents);
427
427
gStore = node;
428
-
429
- clearEvents ();
428
+
430
429
mainMenuUi (node);
431
430
});
432
431
});
0 commit comments