Merge pull request #99 from matrix-org/user_settings_on_register

Show user settings screen on registration
pull/21833/head
David Baker 2016-01-21 10:11:28 +00:00
commit 1c54c64850
1 changed files with 9 additions and 1 deletions

View File

@ -737,7 +737,15 @@ module.exports = React.createClass({
onRegistered: function(credentials) {
this.onLoggedIn(credentials);
// do post-registration stuff
this.showScreen("post_registration");
// This now goes straight to user settings
// We use _setPage since if we wait for
// showScreen to do the dispatch loop,
// the showScreen dispatch will race with the
// sdk sync finishing and we'll probably see
// the page type still unset when the MatrixClient
// is started and show the Room Directory instead.
//this.showScreen("view_user_settings");
this._setPage(this.PageTypes.UserSettings);
},
onFinishPostRegistration: function() {