You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Use modal as a param
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -415,10 +415,9 @@ export default class MessageComposer extends React.Component {
|
||||
this.messageComposerInput._sendMessage();
|
||||
}
|
||||
|
||||
onChange = () => {
|
||||
if (!this.messageComposerInput) return;
|
||||
onChange = (model) => {
|
||||
this.setState({
|
||||
isComposerEmpty: this.messageComposerInput.model.isEmpty,
|
||||
isComposerEmpty: model.isEmpty,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -538,7 +538,7 @@ export default class SendMessageComposer extends React.Component {
|
||||
}
|
||||
|
||||
onChange = () => {
|
||||
if (this.props.onChange) this.props.onChange();
|
||||
if (this.props.onChange) this.props.onChange(this.model);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user