mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #701 from matrix-org/luke/rts-allow-non-referrals
If a referrer hasn't been specified, use empty string
This commit is contained in:
commit
1f77534b32
@ -218,13 +218,11 @@ module.exports = React.createClass({
|
|||||||
// will just nop. The point of this being we might not have the email address
|
// will just nop. The point of this being we might not have the email address
|
||||||
// that the user registered with at this stage (depending on whether this
|
// that the user registered with at this stage (depending on whether this
|
||||||
// is the client they initiated registration).
|
// is the client they initiated registration).
|
||||||
if (
|
if (self._rtsClient) {
|
||||||
self._rtsClient &&
|
// Track referral if self.props.referrer set, get team_token in order to
|
||||||
self.props.referrer
|
// retrieve team config and see welcome page etc.
|
||||||
) {
|
|
||||||
// Track referral, get team_token in order to retrieve team config
|
|
||||||
self._rtsClient.trackReferral(
|
self._rtsClient.trackReferral(
|
||||||
self.props.referrer,
|
self.props.referrer || '', // Default to empty string = not referred
|
||||||
self.registerLogic.params.idSid,
|
self.registerLogic.params.idSid,
|
||||||
self.registerLogic.params.clientSecret
|
self.registerLogic.params.clientSecret
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user