-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contacts after updating #1337
Contacts after updating #1337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I was not expecting that fix! I only have one tiny remark, and one question.
final name = Community.fromCid(appStore.encointer.community?.cid.toFmtString()).name; | ||
if (name == 'No Name' || name.toLowerCase().contains('no name')) { | ||
return context.l10n.unknown; | ||
} else { | ||
return name; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am quite sure that the community can never have this No Name
. Do you have information that I am wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked for community and couldn't see anything with No Name
names))), but still wasn't sure so added this code.
if (contact.address == counterParty) { | ||
if (contact.name == 'No Name' || contact.name.toLowerCase().contains('no name')) { | ||
return context.l10n.unknown; | ||
} | ||
return contact.name; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wow, so the no names, were actually because there were accounts that had No Name
as a name because it was the default choice? This was a tricky one. XD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did go through codes and couldn't find anyplace where No Name
would come up, so thought maybe it's here)))
The actual fix is here: #1376 |
No description provided.