Add nip05 search

Changelog-Added: Added ability to lookup users by nip05 identifiers
This commit is contained in:
William Casarin
2023-03-29 19:24:06 -04:00
parent 9fef2f071a
commit 0a4e75bfec
7 changed files with 143 additions and 2 deletions

View File

@@ -675,6 +675,7 @@ func process_metadata_event(our_pubkey: String, profiles: Profiles, ev: NostrEve
DispatchQueue.main.async {
profiles.validated[ev.pubkey] = validated
profiles.nip05_pubkey[nip05] = ev.pubkey
notify(.profile_updated, ProfileUpdate(pubkey: ev.pubkey, profile: profile))
}
}