You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
s/onBan/onBanOrUnban/
This commit is contained in:
@@ -247,7 +247,7 @@ module.exports = WithMatrixClient(React.createClass({
|
||||
});
|
||||
},
|
||||
|
||||
onBan: function() {
|
||||
onBanOrUnban: function() {
|
||||
const ConfirmUserActionDialog = sdk.getComponent("dialogs.ConfirmUserActionDialog");
|
||||
Modal.createDialog(ConfirmUserActionDialog, {
|
||||
member: this.props.member,
|
||||
@@ -657,7 +657,7 @@ module.exports = WithMatrixClient(React.createClass({
|
||||
}
|
||||
banButton = (
|
||||
<AccessibleButton className="mx_MemberInfo_field"
|
||||
onClick={this.onBan}>
|
||||
onClick={this.onBanOrUnban}>
|
||||
{label}
|
||||
</AccessibleButton>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user