Fix nip 05 validation
This commit is contained in:
@@ -114,7 +114,11 @@ export const deriveHandleForPubkey = (pubkey: string, relays: string[] = []) =>
|
|||||||
|
|
||||||
loadHandle($profile.nip05)
|
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) =>
|
export const displayNip05 = (nip05: string) =>
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ export const COMMUNITY = 34550
|
|||||||
export const ROOM = 35834
|
export const ROOM = 35834
|
||||||
export const ROOM_META = 39000
|
export const ROOM_META = 39000
|
||||||
export const ROOM_ADMINS = 39001
|
export const ROOM_ADMINS = 39001
|
||||||
|
export const FOLLOW_PACK = 39089
|
||||||
|
|
||||||
export const DEPRECATED_RELAY_RECOMMENDATION = 2
|
export const DEPRECATED_RELAY_RECOMMENDATION = 2
|
||||||
export const DEPRECATED_DIRECT_MESSAGE = 4
|
export const DEPRECATED_DIRECT_MESSAGE = 4
|
||||||
|
|||||||
Reference in New Issue
Block a user