mirror of https://github.com/vector-im/riot-web
Use modal as a param
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
a7847f2514
commit
86fe5f778d
|
@ -415,10 +415,9 @@ export default class MessageComposer extends React.Component {
|
||||||
this.messageComposerInput._sendMessage();
|
this.messageComposerInput._sendMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
onChange = () => {
|
onChange = (model) => {
|
||||||
if (!this.messageComposerInput) return;
|
|
||||||
this.setState({
|
this.setState({
|
||||||
isComposerEmpty: this.messageComposerInput.model.isEmpty,
|
isComposerEmpty: model.isEmpty,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -538,7 +538,7 @@ export default class SendMessageComposer extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onChange = () => {
|
onChange = () => {
|
||||||
if (this.props.onChange) this.props.onChange();
|
if (this.props.onChange) this.props.onChange(this.model);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue