Merge pull request #2630 from matrix-org/dbkr/fix_register_email_link

Fix registration after clicking email link
This commit is contained in:
David Baker
2019-02-13 19:25:15 +00:00
committed by GitHub
2 changed files with 31 additions and 7 deletions

View File

@@ -90,7 +90,11 @@ export default class ServerTypeSelector extends React.PureComponent {
selected: type,
};
if (onChange) {
onChange(type);
// FIXME: Supply a second 'initial' param here to flag that this is
// initialising the value rather than from user interaction
// (which sometimes we'll want to ignore). Must be a better way
// to do this.
onChange(type, true);
}
}