mirror of https://github.com/vector-im/riot-web
anchor the authcache on LoggedInView to prevent it persisting over logouts
parent
6af0b9618a
commit
aabf9255d2
|
@ -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,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue