Use the current HS for guest login

Make sure that we use the homeserver from localstorage for guest regsistration,
in preference to the default.

Also rename the parameters for loadSession
This commit is contained in:
Richard van der Hoff 2016-08-11 01:30:43 +01:00
parent 5b9d395234
commit 1fbddcf6af
2 changed files with 10 additions and 10 deletions

View file

@ -173,8 +173,8 @@ module.exports = React.createClass({
Lifecycle.loadSession({
queryParams: this.props.startingQueryParams,
enableGuest: this.props.enableGuest,
hsUrl: this.getDefaultHsUrl(),
isUrl: this.getDefaultIsUrl(),
guestHsUrl: this.getCurrentHsUrl(),
guestIsUrl: this.getCurrentIsUrl(),
}).done(()=>{
// stuff this through the dispatcher so that it happens
// after the on_logged_in action.