1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Tweak page URL defaulting

This commit is contained in:
J. Ryan Stinnett
2019-02-08 13:53:17 +00:00
parent 5ab3c8b823
commit 7a15bb65c4
3 changed files with 12 additions and 5 deletions

View File

@@ -31,8 +31,8 @@ export class TopLeftMenu extends React.Component {
hasHomePage() {
const config = SdkConfig.get();
const pagesConfig = config.pages;
if (pagesConfig) {
return !!pagesConfig.homeUrl;
if (pagesConfig && pagesConfig.homeUrl) {
return true;
}
// This is a deprecated config option for the home page
// (despite the name, given we also now have a welcome