mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
fix: remove unused imports and variables
- Remove unused Badge import from ComposeDialog - Remove unused match variable from extractMentionsFromContent - Simplify placeholder function body
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -183,16 +183,9 @@ export function extractMentionsFromContent(content: string): string[] {
|
||||
|
||||
const pubkeys = new Set<string>();
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user