address PR comments

This commit is contained in:
David Baker 2016-02-04 15:07:30 +00:00
parent 6e424780f1
commit 167da10b8b
2 changed files with 5 additions and 15 deletions

View file

@ -27,14 +27,10 @@ module.exports = React.createClass({
getInitialState: function() {
return {
value: this.props.currentDisplayName || this.getDefaultDisplayName(),
value: this.props.currentDisplayName || "Guest "+MatrixClientPeg.get().getUserIdLocalpart(),
}
},
getDefaultDisplayName: function() {
return "Guest "+MatrixClientPeg.get().getUserIdLocalpart();
},
getValue: function() {
return this.state.value;
},