diff --git a/package.json b/package.json index 285211c2..e6858d90 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "lume", "description": "the communication app", "private": true, - "version": "2.2.1", + "version": "2.2.2", "scripts": { "dev": "vite", "build": "vite build", diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d4b942f2..dfd296cf 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -9,7 +9,7 @@ }, "package": { "productName": "Lume", - "version": "2.2.1" + "version": "2.2.2" }, "plugins": { "fs": { diff --git a/src/shared/nip05.tsx b/src/shared/nip05.tsx index 913ac672..21eb5b4f 100644 --- a/src/shared/nip05.tsx +++ b/src/shared/nip05.tsx @@ -40,7 +40,11 @@ export const NIP05 = memo(function NIP05({ const data: NIP05 = await res.json(); if (data.names) { - if (data.names[localPath.toLowerCase()] !== pubkey) return false; + if ( + data.names[localPath.toLowerCase()] !== pubkey || + data.names[localPath] !== pubkey + ) + return false; return true; } return false; @@ -60,17 +64,13 @@ export const NIP05 = memo(function NIP05({ return (
-

{nip05}

+

+ {nip05.startsWith('_@') ? nip05.replace('_@', '') : nip05} +

{data === true ? ( -
- - Verified -
+ ) : ( -
- - Unverified -
+ )}
); diff --git a/src/shared/widgets/other/liveUpdater.tsx b/src/shared/widgets/other/liveUpdater.tsx index 60fe1250..cd6cf3fa 100644 --- a/src/shared/widgets/other/liveUpdater.tsx +++ b/src/shared/widgets/other/liveUpdater.tsx @@ -30,7 +30,7 @@ export function LiveUpdater({ status }: { status: QueryStatus }) { useEffect(() => { let sub: NDKSubscription = undefined; - if (status === 'success' && db.account && db.account?.follows?.length > 0) { + if (status === 'success' && db.account && db.account?.contacts?.length > 0) { queryClient.fetchQuery({ queryKey: ['notification'] }); const filter: NDKFilter = {