fix(desktop): satisfy composer file-size ratchet

Signed-off-by: Jitter <d14dfe033ef0f809866f9f984de04821b0d900d7652fd85a54776ee40ca3a68f@buzz.block.builderlab.xyz>
This commit is contained in:
Jitter
2026-08-26 20:32:21 +10:00
parent 6efa205944
commit f92e29ddc5

View File

@@ -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(