Merge pull request #933 from matrix-org/luke/new-guest-access-set-display-name-to-useridlocalpart

Set the displayname to the mxid once PWLU
pull/21833/head
Matthew Hodgson 2017-05-26 17:17:23 +01:00 committed by GitHub
commit 3d688a6ada
1 changed files with 6 additions and 0 deletions

View File

@ -814,6 +814,12 @@ module.exports = React.createClass({
dis.dispatch({action: 'view_home_page'});
} else if (this._is_registered) {
this._is_registered = false;
// Set the display name = user ID localpart
MatrixClientPeg.get().setDisplayName(
MatrixClientPeg.get().getUserIdLocalpart()
);
if (this.props.config.welcomeUserId) {
createRoom({
dmUserId: this.props.config.welcomeUserId,