ui: remove nip05 badge on events

Changelog-Changed: Remove nip05 on events
This commit is contained in:
William Casarin
2023-06-20 16:45:30 +02:00
parent 0bea81c632
commit d205be3e0a
2 changed files with 7 additions and 2 deletions

View File

@@ -72,11 +72,14 @@ struct EventProfileName: View {
.font(eventviewsize_to_font(size)) .font(eventviewsize_to_font(size))
} }
/*
if let nip05 = current_nip05 { if let nip05 = current_nip05 {
NIP05Badge(nip05: nip05, pubkey: pubkey, contacts: damus_state.contacts, show_domain: false, clickable: false) NIP05Badge(nip05: nip05, pubkey: pubkey, contacts: damus_state.contacts, show_domain: false, clickable: false)
} }
*/
if current_nip05 == nil, let frend = friend_type {
if let frend = friend_type {
FriendIcon(friend: frend) FriendIcon(friend: frend)
} }

View File

@@ -92,10 +92,12 @@ struct ProfileName: View {
Text(verbatim: "\(prefix)\(name_choice)") Text(verbatim: "\(prefix)\(name_choice)")
.font(.body) .font(.body)
.fontWeight(prefix == "@" ? .none : .bold) .fontWeight(prefix == "@" ? .none : .bold)
/*
if let nip05 = current_nip05 { if let nip05 = current_nip05 {
NIP05Badge(nip05: nip05, pubkey: pubkey, contacts: damus_state.contacts, show_domain: show_nip5_domain, clickable: true) NIP05Badge(nip05: nip05, pubkey: pubkey, contacts: damus_state.contacts, show_domain: show_nip5_domain, clickable: true)
} }
if let friend = friend_type, current_nip05 == nil { */
if let friend = friend_type {
FriendIcon(friend: friend) FriendIcon(friend: friend)
} }
if onlyzapper { if onlyzapper {