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); }