From 89131be43806b1c42ac375fc64fae61b9ab845b7 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 4 Jul 2019 15:14:00 -0600 Subject: [PATCH] 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 --- src/components/structures/MatrixChat.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index ff9a6df61b..a6965e06ca 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -255,6 +255,14 @@ export default React.createClass({ // For PersistentElement 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() {