You've already forked matrix-react-sdk
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:
@@ -415,7 +415,7 @@ class MessageComposer extends React.Component<IProps, IState> {
|
||||
<SendWysiwygComposer key="controls_input"
|
||||
disabled={this.state.haveRecording}
|
||||
onChange={this.onWysiwygChange}
|
||||
onSend={() => this.sendMessage}
|
||||
onSend={this.sendMessage}
|
||||
/>,
|
||||
);
|
||||
} else {
|
||||
|
||||
@@ -23,7 +23,7 @@ import { WysiwygComposer } from './components/WysiwygComposer';
|
||||
interface SendWysiwygComposerProps {
|
||||
disabled?: boolean;
|
||||
onChange: (content: string) => void;
|
||||
onSend(): () => void;
|
||||
onSend: () => void;
|
||||
}
|
||||
interface ContentProps {
|
||||
disabled: boolean;
|
||||
|
||||
Reference in New Issue
Block a user