From e2bafcbf02062be315f748b20d7d2e6a8c3b320c Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 23 Feb 2016 18:26:15 +0000 Subject: [PATCH] Don't redirect to registration on 3pid invite: it's ok to be a guest now. --- src/components/structures/MatrixChat.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 83c79d84e4..34786a0d4c 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -676,13 +676,6 @@ module.exports = React.createClass({ action: 'start_post_registration', }); } else if (screen.indexOf('room/') == 0) { - if (!this.state.logged_in && this.props.startingQueryParams.email) { - console.log("Redirecting to email registration"); - this.showScreen("register"); - this.notifyNewScreen('register'); // this doesn't call showScreen, just updates the hash - return; - } - var segments = screen.substring(5).split('/'); var roomString = segments[0]; var eventId = segments[1]; // undefined if no event id given