1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Fix send message on enter

This commit is contained in:
Florian Duros
2022-10-21 10:35:54 +02:00
parent 4d089dcc05
commit c9bf7da629
2 changed files with 2 additions and 2 deletions

View File

@@ -415,7 +415,7 @@ class MessageComposer extends React.Component<IProps, IState> {
<SendWysiwygComposer key="controls_input" <SendWysiwygComposer key="controls_input"
disabled={this.state.haveRecording} disabled={this.state.haveRecording}
onChange={this.onWysiwygChange} onChange={this.onWysiwygChange}
onSend={() => this.sendMessage} onSend={this.sendMessage}
/>, />,
); );
} else { } else {

View File

@@ -23,7 +23,7 @@ import { WysiwygComposer } from './components/WysiwygComposer';
interface SendWysiwygComposerProps { interface SendWysiwygComposerProps {
disabled?: boolean; disabled?: boolean;
onChange: (content: string) => void; onChange: (content: string) => void;
onSend(): () => void; onSend: () => void;
} }
interface ContentProps { interface ContentProps {
disabled: boolean; disabled: boolean;