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

Commit

Permalink
Merge pull request #99 from matrix-org/user_settings_on_register
Browse files Browse the repository at this point in the history
Show user settings screen on registration
  • Loading branch information
dbkr committed Jan 21, 2016
2 parents a0cc372 + 0ac9974 commit 1c54c64
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1c54c64

Please sign in to comment.