Thread teamToken through to LeftPanel for "Home" button

This means the riot-web will use the same teamToken used by sdk components. This includes cases where only the fragment query parameter has been provided.

Fixes matrix-org/riot-web#3185
pull/21833/head
Luke Barnard 2017-02-10 09:57:28 +00:00
parent 7ba9e27893
commit 45f5b8b3a9
1 changed files with 6 additions and 1 deletions

View File

@ -232,7 +232,12 @@ export default React.createClass({
<div className='mx_MatrixChat_wrapper'>
{topBar}
<div className={bodyClasses}>
<LeftPanel selectedRoom={this.props.currentRoomId} collapsed={this.props.collapse_lhs || false} opacity={this.props.sideOpacity}/>
<LeftPanel
selectedRoom={this.props.currentRoomId}
collapsed={this.props.collapse_lhs || false}
opacity={this.props.sideOpacity}
teamToken={this.props.teamToken}
/>
<main className='mx_MatrixChat_middlePanel'>
{page_element}
</main>