You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
address PR comments
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user