mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Merge pull request #4337 from matrix-org/dbkr/fix_inhibit_login_case
Fix spurious extra devices on registration
This commit is contained in:
commit
9944ce71b6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue