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

If the home page is somehow accessed, goto directory
pull/21833/head
David Baker 2017-02-16 18:10:56 +00:00 committed by GitHub
commit b13e6ca022
1 changed files with 4 additions and 0 deletions

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;