You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +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"
|
<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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user