damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 71b1a9d14ff89a5f1257a70738c5e13dabdd8c5e
parent 8785f31834266e2d12dfc1a797f29f6dc805e268
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  4 Jan 2023 02:01:43 -0800

nip05: never show full host in event profile names

Diffstat:
Mdamus/Views/ProfileName.swift | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/damus/Views/ProfileName.swift b/damus/Views/ProfileName.swift @@ -152,7 +152,7 @@ struct EventProfileName: View { if let real_name = profile?.display_name { Text(real_name) .font(.body.weight(.bold)) - .padding([.trailing], 4) + .padding([.trailing], 2) Text("@" + String(display_name ?? Profile.displayName(profile: profile, pubkey: pubkey))) .foregroundColor(.gray) @@ -163,13 +163,9 @@ struct EventProfileName: View { .fontWeight(.bold) } - if let nip05 = current_nip05 { + if let _ = current_nip05 { Image(systemName: "checkmark.seal.fill") .foregroundColor(nip05_color) - if !contacts.is_friend(pubkey) { - Text(nip05.host) - .foregroundColor(nip05_color) - } } if let frend = friend_icon, current_nip05 == nil {