diff --git a/ts/components/CompositionInput.tsx b/ts/components/CompositionInput.tsx index ab6e78c6c..697d42ed6 100644 --- a/ts/components/CompositionInput.tsx +++ b/ts/components/CompositionInput.tsx @@ -114,7 +114,7 @@ export type Props = Readonly<{ sortedGroupMembers: ReadonlyArray | null; scrollerRef?: React.RefObject; onDirtyChange?(dirty: boolean): unknown; - onEditorStateChange?(options: { + onEditorStateChange(options: { bodyRanges: DraftBodyRanges; caretLocation?: number; conversationId: string | undefined; diff --git a/ts/state/smart/CompositionArea.tsx b/ts/state/smart/CompositionArea.tsx index 3b990580b..fd2d74ee0 100644 --- a/ts/state/smart/CompositionArea.tsx +++ b/ts/state/smart/CompositionArea.tsx @@ -221,6 +221,7 @@ export function SmartCompositionArea({ id }: { id: string }): JSX.Element { useGlobalModalActions(); const { clearInstalledStickerPack } = useStickersActions(); const { showToast } = useToastActions(); + const { onEditorStateChange } = useComposerActions(); return (