Show npub abbreviations instead of hex
Changelog-Changed: Show npub abbreviations instead of old-style hex
This commit is contained in:
1 parent
aea271182e
commit
538ce45c2c
6 files changed
+15
-7
No files matched your search
@@ -89,7 +89,8 @@ struct Profile: Codable {
|
||||
}
|
||||
|
||||
static func displayName(profile: Profile?, pubkey: String) -> String {
|
||||
return profile?.name ?? abbrev_pubkey(pubkey)
|
||||
let pk = bech32_nopre_pubkey(pubkey) ?? pubkey
|
||||
return profile?.name ?? abbrev_pubkey(pk)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user