Refactor contact handling and enhance UI with new advert options and localized strings

This commit is contained in:
Winston Lowe
2026-01-28 11:04:34 -08:00
parent d0c8fab6fb
commit 42115bf200
5 changed files with 52 additions and 37 deletions
+4
View File
@@ -102,6 +102,10 @@ class Contact {
return parts.join(',');
}
String get shortPubKeyHex {
return "<${publicKeyHex.substring(0, 8)}...${publicKeyHex.substring(publicKeyHex.length - 8)}>";
}
Uint8List get _pathBytesForDisplay {
if (pathOverride != null) {
if (pathOverride! < 0) return Uint8List(0);