1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

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;
},