Don't redirect to registration on 3pid invite: it's ok to be a guest now.

This commit is contained in:
David Baker 2016-02-23 18:26:15 +00:00
parent f1dd3d381a
commit e2bafcbf02

View file

@ -676,13 +676,6 @@ module.exports = React.createClass({
action: 'start_post_registration', action: 'start_post_registration',
}); });
} else if (screen.indexOf('room/') == 0) { } 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 segments = screen.substring(5).split('/');
var roomString = segments[0]; var roomString = segments[0];
var eventId = segments[1]; // undefined if no event id given var eventId = segments[1]; // undefined if no event id given