mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
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:
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
Block a user