From 6d9f4fbdf0fb394038ccd92347f87b8de81953da Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Jan 2026 16:02:16 +0000 Subject: [PATCH] fix: remove unused imports and variables - Remove unused Badge import from ComposeDialog - Remove unused match variable from extractMentionsFromContent - Simplify placeholder function body --- src/components/ComposeDialog.tsx | 1 - src/lib/thread-builder.ts | 13 +++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/components/ComposeDialog.tsx b/src/components/ComposeDialog.tsx index 0e86d29..c858292 100644 --- a/src/components/ComposeDialog.tsx +++ b/src/components/ComposeDialog.tsx @@ -10,7 +10,6 @@ import { } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { Badge } from "@/components/ui/badge"; import { MentionEditor, type MentionEditorHandle, diff --git a/src/lib/thread-builder.ts b/src/lib/thread-builder.ts index c397263..69f88c8 100644 --- a/src/lib/thread-builder.ts +++ b/src/lib/thread-builder.ts @@ -183,16 +183,9 @@ export function extractMentionsFromContent(content: string): string[] { const pubkeys = new Set(); - for (const match of matches) { - try { - // Remove "nostr:" prefix - // TODO: decode npub to pubkey - // The MentionEditor already handles encoding, so we can extract from tags instead - // This function is a placeholder for future enhancement - } catch { - // Skip invalid npubs - } - } + // TODO: decode npub to pubkey from matches + // The MentionEditor already handles encoding, so we can extract from tags instead + // This function is a placeholder for future enhancement return Array.from(pubkeys); }