mirror of
https://github.com/block/buzz.git
synced 2026-11-30 05:02:57 +00:00
fix(desktop): satisfy composer file-size ratchet
Signed-off-by: Jitter <d14dfe033ef0f809866f9f984de04821b0d900d7652fd85a54776ee40ca3a68f@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user