You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
change handler name to suit convention
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -67,7 +67,7 @@ export default class Quote extends React.Component {
|
|||||||
show: !this.props.isNested,
|
show: !this.props.isNested,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onShowNested = this.onShowNested.bind(this);
|
this.onQuoteClick = this.onQuoteClick.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
getChildContext() {
|
getChildContext() {
|
||||||
@@ -117,7 +117,7 @@ export default class Quote extends React.Component {
|
|||||||
this.setState({room, event});
|
this.setState({room, event});
|
||||||
}
|
}
|
||||||
|
|
||||||
onShowNested() {
|
onQuoteClick() {
|
||||||
this.setState({
|
this.setState({
|
||||||
show: true,
|
show: true,
|
||||||
});
|
});
|
||||||
@@ -141,7 +141,7 @@ export default class Quote extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return <div>
|
return <div>
|
||||||
<a onClick={this.onShowNested} className="mx_Quote_show">{ _t('Quote') }</a>
|
<a onClick={this.onQuoteClick} className="mx_Quote_show">{ _t('Quote') }</a>
|
||||||
<br />
|
<br />
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user