Merge pull request #1398 from matrix-org/luke/fix-ugly-manage-integs-button
Only show the integ management button if user is joinedpull/21833/head
						commit
						0958689d25
					
				|  | @ -48,7 +48,7 @@ export default class ManageIntegsButton extends React.Component { | |||
|                 this.forceUpdate(); | ||||
|             }, (err) => { | ||||
|                 this.setState({ scalarError: err}); | ||||
|                 console.error(err); | ||||
|                 console.error('Error whilst initialising scalarClient for ManageIntegsButton', err); | ||||
|             }); | ||||
|         } | ||||
|     } | ||||
|  |  | |||
|  | @ -324,7 +324,7 @@ module.exports = React.createClass({ | |||
| 
 | ||||
|         let rightRow; | ||||
|         let manageIntegsButton; | ||||
|         if(this.props.room && this.props.room.roomId) { | ||||
|         if(this.props.room && this.props.room.roomId && this.props.inRoom) { | ||||
|             manageIntegsButton = <ManageIntegsButton | ||||
|                 roomId={this.props.room.roomId} | ||||
|             />; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 David Baker
						David Baker