From f92e29ddc54f6a0c0ffcd2f5c60b43b675458f0a Mon Sep 17 00:00:00 2001 From: Jitter Date: Wed, 26 Aug 2026 20:32:21 +1000 Subject: [PATCH] fix(desktop): satisfy composer file-size ratchet Signed-off-by: Jitter --- desktop/src/features/messages/ui/MessageComposer.tsx | 3 --- 1 file changed, 3 deletions(-) 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(