diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index aa9470f126..c2243820cd 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -49,11 +49,16 @@ export default React.createClass({ childContextTypes: { matrixClient: React.PropTypes.instanceOf(Matrix.MatrixClient), + authCache: React.PropTypes.object, }, getChildContext: function() { return { matrixClient: this._matrixClient, + authCache: { + auth: {}, + lastUpdate: 0, + }, }; }, diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 8cc966607c..3265249105 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -68,7 +68,6 @@ module.exports = React.createClass({ childContextTypes: { appConfig: React.PropTypes.object, - authCache: React.PropTypes.object, }, AuxPanel: { @@ -78,10 +77,6 @@ module.exports = React.createClass({ getChildContext: function() { return { appConfig: this.props.config, - authCache: { - auth: {}, - lastUpdate: 0, - }, }; },