address PR comments
This commit is contained in:
parent
6e424780f1
commit
167da10b8b
2 changed files with 5 additions and 15 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue