From 03cbd7e8bb0afccd4d242cf977bcb0eb9bd72b17 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 4 Jul 2019 16:51:55 -0600 Subject: [PATCH] Ensure links off the forgot password page land you at soft logout --- 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..cc391d2af0 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -442,6 +442,10 @@ export default React.createClass({ startAnyRegistrationFlow(payload); break; case 'start_registration': + if (Lifecycle.isSoftLogout()) { + this._onSoftLogout(); + break; + } // This starts the full registration flow if (payload.screenAfterLogin) { this._screenAfterLogin = payload.screenAfterLogin; @@ -449,6 +453,10 @@ export default React.createClass({ this._startRegistration(payload.params || {}); break; case 'start_login': + if (Lifecycle.isSoftLogout()) { + this._onSoftLogout(); + break; + } if (payload.screenAfterLogin) { this._screenAfterLogin = payload.screenAfterLogin; }