1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Set referrer qp in nextLink

This is so that when the verification link is clicked from an email, the referrer is set on the new instance of riot when /rts/register is hit
This commit is contained in:
Luke Barnard
2017-02-08 17:58:40 +00:00
parent fe17e2452b
commit c2d5b72d68
3 changed files with 12 additions and 0 deletions

View File

@ -98,6 +98,9 @@ module.exports = React.createClass({
this.registerLogic.setRegistrationUrl(this.props.registrationUrl);
this.registerLogic.setIdSid(this.props.idSid);
this.registerLogic.setGuestAccessToken(this.props.guestAccessToken);
if (this.props.referrer) {
this.registerLogic.setReferrer(this.props.referrer);
}
this.registerLogic.recheckState();
if (