Set the displayname to the mxid once PWLU

pull/21833/head
Luke Barnard 2017-05-26 11:46:33 +01:00
parent 6218a8615a
commit 2dcc03960a
1 changed files with 6 additions and 0 deletions

View File

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