Merge pull request #705 from matrix-org/luke/rts-default-goto-directory
If the home page is somehow accessed, goto directorypull/21833/head
commit
b13e6ca022
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue