You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Merge pull request #933 from matrix-org/luke/new-guest-access-set-display-name-to-useridlocalpart
Set the displayname to the mxid once PWLU
This commit is contained in:
@ -814,6 +814,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 = user ID localpart
|
||||||
|
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,
|
||||||
|
Reference in New Issue
Block a user