damus

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

commit 980394bf0b3e39623cf397ce6db5a6db240e8fc6
parent ed73899e5ba92ccd9234ee9e9a4384ad6bbe598e
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 23 Jun 2023 20:46:03 +0200

Revert "ui: remove nip05 badge on events"

This reverts commit d205be3e0a50f4c011793f278086a1fefb363aee.

Diffstat:
Mdamus/Views/Profile/EventProfileName.swift | 5+----
Mdamus/Views/Profile/ProfileName.swift | 4+---
2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/damus/Views/Profile/EventProfileName.swift b/damus/Views/Profile/EventProfileName.swift @@ -72,14 +72,11 @@ struct EventProfileName: View { .font(eventviewsize_to_font(size)) } - /* if let nip05 = current_nip05 { NIP05Badge(nip05: nip05, pubkey: pubkey, contacts: damus_state.contacts, show_domain: false, clickable: false) } - */ - - if let frend = friend_type { + if current_nip05 == nil, let frend = friend_type { FriendIcon(friend: frend) } diff --git a/damus/Views/Profile/ProfileName.swift b/damus/Views/Profile/ProfileName.swift @@ -92,12 +92,10 @@ struct ProfileName: View { Text(verbatim: "\(prefix)\(name_choice)") .font(.body) .fontWeight(prefix == "@" ? .none : .bold) - /* if let nip05 = current_nip05 { NIP05Badge(nip05: nip05, pubkey: pubkey, contacts: damus_state.contacts, show_domain: show_nip5_domain, clickable: true) } - */ - if let friend = friend_type { + if let friend = friend_type, current_nip05 == nil { FriendIcon(friend: friend) } if onlyzapper {