diff --git a/desktop/src/features/messages/ui/MessageComposer.tsx b/desktop/src/features/messages/ui/MessageComposer.tsx index a5047da42f..2b0aa9ccb9 100644 --- a/desktop/src/features/messages/ui/MessageComposer.tsx +++ b/desktop/src/features/messages/ui/MessageComposer.tsx @@ -403,7 +403,6 @@ function MessageComposerImpl({ setSpoileredAttachmentUrls( findSpoileredImetaMediaUrls(editTarget.body, editableImeta), ); - // also lands the caret at end of the loaded content. const rafId = requestAnimationFrame(() => richText.focusEnd()); return () => cancelAnimationFrame(rafId); } else if (preEditSnapshotRef.current !== null) { @@ -431,8 +430,6 @@ function MessageComposerImpl({ richText.focusPreserve(); }, [composerDisabled, replyTarget, richText.focusPreserve]); useComposerAutofocus(richText.focus, effectiveDraftKey, composerDisabled); - // Hooks return a plain-text edit descriptor; `replacePlainTextRange` - // applies it as a single ProseMirror transaction (no markdown round-trip). const applyAutocompleteEdit = React.useCallback( (edit: AutocompleteEdit) => { richText.replacePlainTextRange(