Fix send message on enter

t3chguy/dedup-icons-17oct
Florian Duros 2022-10-21 10:35:54 +02:00
parent 4d089dcc05
commit c9bf7da629
No known key found for this signature in database
GPG Key ID: 9700AA5870258A0B
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"
disabled={this.state.haveRecording}
onChange={this.onWysiwygChange}
onSend={() => this.sendMessage}
onSend={this.sendMessage}
/>,
);
} else {

View File

@ -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;