mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-09-20 10:30:40 +02:00
fixed issue where treeSelector was wrongly used and was not priting children events which didn't pass
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
// for debugging
|
// for debugging
|
||||||
String gCheckEventId = "a77adfe7fb19195de2f2b3393698ea37d48671b93acd47f2f3a89c60f7a012ca";
|
String gCheckEventId = "a4479de655094679cdfb10f347521aa58f24717cdc5ddba89fb346453a8a99ed";
|
||||||
|
|
||||||
|
|
||||||
const int numWaitSeconds = 3000;
|
const int numWaitSeconds = 3000;
|
||||||
|
@@ -336,18 +336,16 @@ class Tree {
|
|||||||
|
|
||||||
bool leftShifted = false;
|
bool leftShifted = false;
|
||||||
for( int i = 0; i < children.length; i++) {
|
for( int i = 0; i < children.length; i++) {
|
||||||
// continue if this children isn't going to get printed anyway
|
|
||||||
//if( gDebug > 0) print("going to call tree selector");
|
|
||||||
if( !treeSelector(children[i])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!whetherTopMost) {
|
if(!whetherTopMost) {
|
||||||
stdout.write("\n");
|
stdout.write("\n");
|
||||||
printDepth(depth+1);
|
printDepth(depth+1);
|
||||||
stdout.write("|\n");
|
stdout.write("|\n");
|
||||||
} else {
|
} else {
|
||||||
|
// continue if this children isn't going to get printed anyway; selector is only called for top most tree
|
||||||
|
if( !treeSelector(children[i])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Tree newestChild = children[i].getMostRecent(0);
|
Tree newestChild = children[i].getMostRecent(0);
|
||||||
DateTime dTime = DateTime.fromMillisecondsSinceEpoch(newestChild.e.eventData.createdAt *1000);
|
DateTime dTime = DateTime.fromMillisecondsSinceEpoch(newestChild.e.eventData.createdAt *1000);
|
||||||
|
Reference in New Issue
Block a user