From c6da06cd4d233810013c5e4e2aff70d836cf6027 Mon Sep 17 00:00:00 2001 From: reya Date: Fri, 8 Nov 2024 09:02:57 +0700 Subject: [PATCH] chore: clean up --- src-tauri/src/commands/account.rs | 13 ++++++++++--- src/routes/columns/_layout/launchpad.$id.lazy.tsx | 2 +- .../columns/_layout/notification.$id.lazy.tsx | 6 +++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src-tauri/src/commands/account.rs b/src-tauri/src/commands/account.rs index 0e406ba8..503a492a 100644 --- a/src-tauri/src/commands/account.rs +++ b/src-tauri/src/commands/account.rs @@ -111,16 +111,23 @@ pub async fn connect_account(uri: String, state: State<'_, Nostr>) -> Result tag[0] === "title")?.[1] || "Unnamed"; const label = item.kind === 3 - ? `newsfeed-${id.slice(0, 5)}` + ? `newsfeed-${item.pubkey.slice(0, 5)}` : item.tags.find((tag) => tag[0] === "d")?.[1] || nanoid(); return ( diff --git a/src/routes/columns/_layout/notification.$id.lazy.tsx b/src/routes/columns/_layout/notification.$id.lazy.tsx index 3d352b98..a6ae9829 100644 --- a/src/routes/columns/_layout/notification.$id.lazy.tsx +++ b/src/routes/columns/_layout/notification.$id.lazy.tsx @@ -120,19 +120,19 @@ function Screen() { > Replies Reactions Zaps