mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Use modal as a param
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
a7847f2514
commit
86fe5f778d
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user