1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

Merge pull request #3273 from matrix-org/dbkr/dont_load_guest_session

Don't load guest sessions on post-registration login link
This commit is contained in:
David Baker
2019-08-02 17:46:00 +01:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@@ -438,7 +438,7 @@ module.exports = React.createClass({
_onLoginClickWithCheck: async function(ev) {
ev.preventDefault();
const sessionLoaded = await Lifecycle.loadSession({});
const sessionLoaded = await Lifecycle.loadSession({ignoreGuest: true});
if (!sessionLoaded) {
// ok fine, there's still no session: really go to the login page
this.props.onLoginClick();