Merge pull request #964 from matrix-org/luke/start-url

Add /start to show the setMxId above HomePage
pull/21833/head
Matthew Hodgson 2017-05-30 15:45:43 +01:00 committed by GitHub
commit 90c2fc01d2
1 changed files with 6 additions and 1 deletions

View File

@ -685,7 +685,7 @@ module.exports = React.createClass({
onLoginClick: (ev) => { onLoginClick: (ev) => {
dis.dispatch({action: 'start_login'}); dis.dispatch({action: 'start_login'});
close(); close();
}, },
}).close; }).close;
}, },
@ -991,6 +991,11 @@ module.exports = React.createClass({
dis.dispatch({ dis.dispatch({
action: 'view_home_page', action: 'view_home_page',
}); });
} else if (screen == 'start') {
this.showScreen('home');
dis.dispatch({
action: 'view_set_mxid',
});
} else if (screen == 'directory') { } else if (screen == 'directory') {
dis.dispatch({ dis.dispatch({
action: 'view_room_directory', action: 'view_room_directory',