mirror of https://github.com/vector-im/riot-web
Use `mx_team_token` instead of config
parent
acde1f3db7
commit
8c941b11cd
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue