nip05: hide nip05 username if it matches the username

This commit is contained in:
William Casarin
2023-07-17 13:17:29 -07:00
parent d04f1c6867
commit 7d17b9b476
2 changed files with 20 additions and 8 deletions

View File

@@ -85,7 +85,7 @@ struct ProfileName: View {
.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)
NIP05Badge(nip05: nip05, pubkey: pubkey, contacts: damus_state.contacts, show_domain: show_nip5_domain, profiles: damus_state.profiles)
}
if let friend = friend_type, current_nip05 == nil {
FriendIcon(friend: friend)