onIsEmptyChanged() -> onChange()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
9420cc35cc
commit
a7847f2514
2 changed files with 6 additions and 7 deletions
|
@ -117,7 +117,7 @@ export default class SendMessageComposer extends React.Component {
|
|||
placeholder: PropTypes.string,
|
||||
permalinkCreator: PropTypes.object.isRequired,
|
||||
replyToEvent: PropTypes.object,
|
||||
onIsEmptyChanged: PropTypes.func,
|
||||
onChange: PropTypes.func,
|
||||
};
|
||||
|
||||
static contextType = MatrixClientContext;
|
||||
|
@ -538,9 +538,7 @@ export default class SendMessageComposer extends React.Component {
|
|||
}
|
||||
|
||||
onChange = () => {
|
||||
if (this.props.onIsEmptyChanged) {
|
||||
this.props.onIsEmptyChanged(this.model.isEmpty);
|
||||
}
|
||||
if (this.props.onChange) this.props.onChange();
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue