Merge pull request #4337 from matrix-org/dbkr/fix_inhibit_login_case

Fix spurious extra devices on registration
This commit is contained in:
David Baker 2020-04-02 15:29:55 +01:00 committed by GitHub
commit 9944ce71b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -463,7 +463,7 @@ export default createReactClass({
initial_device_display_name: this.props.defaultDeviceDisplayName,
};
if (auth) registerParams.auth = auth;
if (inhibitLogin !== undefined && inhibitLogin !== null) registerParams.inhibitLogin = inhibitLogin;
if (inhibitLogin !== undefined && inhibitLogin !== null) registerParams.inhibit_login = inhibitLogin;
return this.state.matrixClient.registerRequest(registerParams);
},