delint
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
baf0d37983
commit
9fa7cb8635
1 changed files with 6 additions and 7 deletions
|
@ -15,10 +15,9 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
import React from 'react';
|
||||||
const React = require('react');
|
import sdk from '../../../index';
|
||||||
const sdk = require('../../../index');
|
import MatrixClientPeg from '../../../MatrixClientPeg';
|
||||||
const MatrixClientPeg = require("../../../MatrixClientPeg");
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
|
@ -34,10 +33,10 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_changeDisplayName: function(new_displayname) {
|
_changeDisplayName: function(newDisplayname) {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
return cli.setDisplayName(new_displayname).catch(function(e) {
|
return cli.setDisplayName(newDisplayname).catch(function(e) {
|
||||||
throw new Error("Failed to set display name");
|
throw new Error("Failed to set display name", e);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue