Use mx_team_token instead of config

This commit is contained in:
Luke Barnard 2017-02-02 11:22:40 +00:00
parent acde1f3db7
commit 8c941b11cd
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ export default React.createClass({
case PageTypes.HomePage:
page_element = <HomePage
collapsedRhs={this.props.collapse_rhs}
config={this.props.config}
teamToken={window.localStorage.getItem("mx_team_token")}
/>
if (!this.props.collapse_rhs) right_panel = <RightPanel opacity={this.props.sideOpacity}/>
break;

View File

@ -694,7 +694,7 @@ module.exports = React.createClass({
)[0].roomId;
self.setState({ready: true, currentRoomId: firstRoom, page_type: PageTypes.RoomView});
} else {
if (self.props.config.home_page) {
if (window.localStorage.getItem('mx_team_token')) {
self.setState({ready: true, page_type: PageTypes.HomePage});
}
else {