You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Review comments
This commit is contained in:
@@ -376,7 +376,7 @@ module.exports = WithMatrixClient(React.createClass({
|
||||
// get out of sync if we force setState here!
|
||||
console.log("Power change success");
|
||||
}, function(err) {
|
||||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failure to change power level",
|
||||
description: err.message
|
||||
@@ -384,7 +384,7 @@ module.exports = WithMatrixClient(React.createClass({
|
||||
}
|
||||
).finally(()=>{
|
||||
this.setState({ updating: this.state.updating - 1 });
|
||||
});
|
||||
}).done();
|
||||
this.props.onFinished();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user