Fix nip 05 validation

This commit is contained in:
Jon Staab
2025-07-03 09:46:41 -07:00
parent c54225380e
commit bef4d09a09
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -114,7 +114,11 @@ export const deriveHandleForPubkey = (pubkey: string, relays: string[] = []) =>
loadHandle($profile.nip05)
return $handlesByNip05.get($profile.nip05)
const handle = $handlesByNip05.get($profile.nip05)
if (handle?.pubkey === pubkey) {
return handle
}
})
export const displayNip05 = (nip05: string) =>
+1
View File
@@ -187,6 +187,7 @@ export const COMMUNITY = 34550
export const ROOM = 35834
export const ROOM_META = 39000
export const ROOM_ADMINS = 39001
export const FOLLOW_PACK = 39089
export const DEPRECATED_RELAY_RECOMMENDATION = 2
export const DEPRECATED_DIRECT_MESSAGE = 4