Merge pull request #705 from matrix-org/luke/rts-default-goto-directory

If the home page is somehow accessed, goto directory
This commit is contained in:
David Baker 2017-02-16 18:10:56 +00:00 committed by GitHub
commit b13e6ca022

View File

@ -464,6 +464,10 @@ module.exports = React.createClass({
this.notifyNewScreen('directory');
break;
case 'view_home_page':
if (!this._teamToken) {
dis.dispatch({action: 'view_room_directory'});
return;
}
this._setPage(PageTypes.HomePage);
this.notifyNewScreen('home');
break;