performance: don't spam nip05 validation on startup
Since we don't show these on events anymore, we don't need to spam nip05 validation. We can just check when we go to the profile page Changelog-Fixed: Eliminate nostr address validation bandwidth on startup
This commit is contained in:
@@ -40,6 +40,12 @@ class Profiles {
|
||||
}
|
||||
}
|
||||
|
||||
func invalidate_nip05(_ pk: String) {
|
||||
validated_queue.async(flags: .barrier) {
|
||||
self.validated.removeValue(forKey: pk)
|
||||
}
|
||||
}
|
||||
|
||||
func set_validated(_ pk: String, nip05: NIP05?) {
|
||||
validated_queue.async(flags: .barrier) {
|
||||
self.validated[pk] = nip05
|
||||
|
||||
Reference in New Issue
Block a user