Removed extra print statement

This commit is contained in:
Vishal 2022-08-28 00:20:05 +05:30
parent 6c2a23c689
commit 0318202401
2 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@ Future<void> otherMenuUi(Tree node, var contactList) async {
// if contact list was found, get user's feed, and keep the contact list for later use
String authorName = gKindONames[pubkey.first]?.name??"";
List<String> contactList = [];
printUnderlined("Profile for User");
printUnderlined("\nProfile for User");
print("\nName : $authorName ( ${pubkey.first} ).");
if (contactEvent != null ) {

View File

@ -595,13 +595,13 @@ void processKind0Event(Event e) {
if(name != Null) {
if( !gKindONames.containsKey(e.eventData.pubkey)) {
gKindONames[e.eventData.pubkey] = UserNameInfo(e.eventData.createdAt, name??"", about??"", picture??"");
print("Created meta data for name: $name about: $about picture: $picture");
//print("Created meta data for name: $name about: $about picture: $picture");
} else {
int oldTime = gKindONames[e.eventData.pubkey]?.createdAt??0;
if( oldTime < e.eventData.createdAt) {
String oldName = gKindONames[e.eventData.pubkey]?.name??"";
gKindONames[e.eventData.pubkey] = UserNameInfo(e.eventData.createdAt, name??"", about??"", picture??"");
print("Updated meta data to name: $name from $oldName");
//print("Updated meta data to name: $name from $oldName");
}
}
}