Skip to content

Commit

Permalink
increased event id printed to 6 from 4
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalxl committed Dec 22, 2022
1 parent 68c9fb9 commit 9300828
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/event_ds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class EventData {
}


int n = 4;
int n = 6;
String maxN(String v) => v.length > n? v.substring(0,n) : v.substring(0, v.length);

String name = getAuthorName(pubkey);
Expand Down Expand Up @@ -709,7 +709,7 @@ class EventData {

strToPrint += "${name}: ";
const int typicalxLen = "|id: 82b5 , 12:04 AM Sep 19".length + 5; // not sure where 5 comes from
String idDateLikes = " |id: ${maxN(id)} , $strDate ${getReactionStr(depth)}" ;
String idDateLikes = " |id: ${maxN(id)}, $strDate ${getReactionStr(depth)}" ;
idDateLikes = idDateLikes.padRight(typicalxLen);

String temp = tempEvaluatedContent==""?tempContent: tempEvaluatedContent;
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: nostr_console
description: A multi-platform nostr client built for terminal/console
version: 0.2.6-beta
version: 0.2.7-beta
homepage: https://github.com/vishalxl/nostr_console


# crated location and t rooms
# t tags added for all tags
# improved relay, fetching logic and added more default pubkeys to fetch
# incresed user id lenth to 5, and event id len to 6 in SN

environment:
sdk: '>=2.17.3 <3.0.0'

Expand Down

0 comments on commit 9300828

Please sign in to comment.