We already know we're a guest here

This commit is contained in:
David Baker 2016-08-02 18:59:09 +01:00
parent 40834d188e
commit 65865f879f

View File

@ -305,9 +305,7 @@ module.exports = React.createClass({
break; break;
case 'start_upgrade_registration': case 'start_upgrade_registration':
// stash our guest creds so we can backout if needed // stash our guest creds so we can backout if needed
if (MatrixClientPeg.get().isGuest()) {
this.guestCreds = MatrixClientPeg.getCredentials(); this.guestCreds = MatrixClientPeg.getCredentials();
}
this.replaceState({ this.replaceState({
screen: "register", screen: "register",
upgradeUsername: MatrixClientPeg.get().getUserIdLocalpart(), upgradeUsername: MatrixClientPeg.get().getUserIdLocalpart(),