removed extra debug msg

This commit is contained in:
vishalxl 2022-08-26 05:04:07 +05:30
parent 418c3e6b7a
commit 9d38f04bd8
3 changed files with 9 additions and 3 deletions

View File

@ -298,8 +298,7 @@ class EventData {
}
}
int n = 3;
int n = 4;
String maxN(String v) => v.length > n? v.substring(0,n) : v.substring(0, v.length);
void printInColor(String s, String commentColor) => stdout.supportsAnsiEscapes ?stdout.write("$commentColor$s$colorEndMarker"):stdout.write(s);

View File

@ -3,6 +3,8 @@
String gCheckEventId = "a4479de655094679cdfb10f347521aa58f24717cdc5ddba89fb346453a8a99ed";
String gRemoteAdminPubkey = "";
const int numWaitSeconds = 3000;
// global counters of total events read or processed

View File

@ -178,6 +178,11 @@ class Tree {
return;
}
// experimental
if( newEvent.eventData.pubkey == gRemoteAdminPubkey) {
}
// expand mentions ( and translate if flag is set)
newEvent.eventData.translateAndExpandMentions();
@ -467,7 +472,7 @@ class Tree {
if( room.name.length < channelId.length) {
continue;
}
print("room = ${room.name} channelId = $channelId");
if( gDebug > 0) print("room = ${room.name} channelId = $channelId");
if( room.name.substring(0, channelId.length) == channelId ) {
printChannel(room);
return key;