chore: clean up comments in editor and composer

This commit is contained in:
CREDO23 2026-03-20 20:35:29 +02:00
parent c78f0e78aa
commit 9e058e1329
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ export const InlineMentionEditor = forwardRef<InlineMentionEditorRef, InlineMent
}
}, [initialDocuments]);
// Seed editor with initialText on mount (e.g. clipboard content from Electron tray)
// Seed editor with initialText on mount
const initialTextAppliedRef = useRef(false);
useEffect(() => {
if (!initialText || initialTextAppliedRef.current || !editorRef.current) return;

View file

@ -314,7 +314,7 @@ const Composer: FC = () => {
const composerRuntime = useComposerRuntime();
const hasAutoFocusedRef = useRef(false);
// Clipboard content from Electron tray (pre-filled into composer)
// Clipboard content
const [clipboardText, setClipboardText] = useState<string | undefined>();
useEffect(() => {
const api = (window as { electronAPI?: { getClipboardContent?: () => Promise<string> } }).electronAPI;