mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Require that users go to the soft logout page if they're soft logged out
Fixes https://github.com/vector-im/riot-web/issues/10234
This commit is contained in:
parent
f3c6c73329
commit
89131be438
1 changed files with 8 additions and 0 deletions
|
@ -255,6 +255,14 @@ export default React.createClass({
|
||||||
|
|
||||||
// For PersistentElement
|
// For PersistentElement
|
||||||
this.state.resizeNotifier.on("middlePanelResized", this._dispatchTimelineResize);
|
this.state.resizeNotifier.on("middlePanelResized", this._dispatchTimelineResize);
|
||||||
|
|
||||||
|
// Force users to go through the soft logout page if they're soft logged out
|
||||||
|
if (Lifecycle.isSoftLogout()) {
|
||||||
|
// When the session loads it'll be detected as soft logged out and a dispatch
|
||||||
|
// will be sent out to say that, triggering this MatrixChat to show the soft
|
||||||
|
// logout page.
|
||||||
|
Lifecycle.loadSession({});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
|
|
Loading…
Reference in a new issue