You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
anchor the authcache on LoggedInView to prevent it persisting over logouts
This commit is contained in:
@@ -49,11 +49,16 @@ export default React.createClass({
|
|||||||
|
|
||||||
childContextTypes: {
|
childContextTypes: {
|
||||||
matrixClient: React.PropTypes.instanceOf(Matrix.MatrixClient),
|
matrixClient: React.PropTypes.instanceOf(Matrix.MatrixClient),
|
||||||
|
authCache: React.PropTypes.object,
|
||||||
},
|
},
|
||||||
|
|
||||||
getChildContext: function() {
|
getChildContext: function() {
|
||||||
return {
|
return {
|
||||||
matrixClient: this._matrixClient,
|
matrixClient: this._matrixClient,
|
||||||
|
authCache: {
|
||||||
|
auth: {},
|
||||||
|
lastUpdate: 0,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
childContextTypes: {
|
childContextTypes: {
|
||||||
appConfig: React.PropTypes.object,
|
appConfig: React.PropTypes.object,
|
||||||
authCache: React.PropTypes.object,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
AuxPanel: {
|
AuxPanel: {
|
||||||
@@ -78,10 +77,6 @@ module.exports = React.createClass({
|
|||||||
getChildContext: function() {
|
getChildContext: function() {
|
||||||
return {
|
return {
|
||||||
appConfig: this.props.config,
|
appConfig: this.props.config,
|
||||||
authCache: {
|
|
||||||
auth: {},
|
|
||||||
lastUpdate: 0,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user