1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

anchor the authcache on LoggedInView to prevent it persisting over logouts

This commit is contained in:
Matthew Hodgson
2017-02-21 01:03:22 +00:00
parent 6af0b9618a
commit aabf9255d2
2 changed files with 5 additions and 5 deletions

View File

@ -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,
},
};
},