mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-20 05:51:08 +02:00
Set the displayname to the mxid once PWLU
This commit is contained in:
parent
6218a8615a
commit
2dcc03960a
@ -805,6 +805,12 @@ module.exports = React.createClass({
|
|||||||
dis.dispatch({action: 'view_home_page'});
|
dis.dispatch({action: 'view_home_page'});
|
||||||
} else if (this._is_registered) {
|
} else if (this._is_registered) {
|
||||||
this._is_registered = false;
|
this._is_registered = false;
|
||||||
|
|
||||||
|
// Set the display name = entered username
|
||||||
|
MatrixClientPeg.get().setDisplayName(
|
||||||
|
MatrixClientPeg.get().getUserIdLocalpart()
|
||||||
|
);
|
||||||
|
|
||||||
if (this.props.config.welcomeUserId) {
|
if (this.props.config.welcomeUserId) {
|
||||||
createRoom({
|
createRoom({
|
||||||
dmUserId: this.props.config.welcomeUserId,
|
dmUserId: this.props.config.welcomeUserId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user