Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e38437e

Browse files
Luke Barnarddbkr
authored andcommitted
Invite the welcome user after registration if configured
This will shift focus to the welcome user DM. We probably don't want to do this for teams, but I shall leave that for another PR that fixes teams WRT to new-guest-access.
1 parent a44fcd6 commit e38437e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/structures/MatrixChat.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,12 @@ module.exports = React.createClass({
768768
this._teamToken = teamToken;
769769
dis.dispatch({action: 'view_home_page'});
770770
} else if (this._is_registered) {
771+
if (this.props.config.welcomeUserId) {
772+
createRoom({dmUserId: this.props.config.welcomeUserId});
773+
return;
774+
}
771775
// The user has just logged in after registering
772-
dis.dispatch({action: 'view_user_settings'});
776+
dis.dispatch({action: 'view_room_directory'});
773777
} else {
774778
this._showScreenAfterLogin();
775779
}

0 commit comments

Comments
 (0)