Fix key upload when doing SSO login

This commit is contained in:
Nicolas Werner 2022-03-13 17:59:22 +01:00
parent 71a7dace81
commit e98145daec
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -291,7 +291,7 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod,
mtx::requests::Login req{};
req.token = token;
req.type = mtx::user_interactive::auth_types::token;
req.device_id =
req.initial_device_display_name =
deviceName.trimmed().isEmpty() ? initialDeviceName_() : deviceName.toStdString();
http::client()->login(
req, [this](const mtx::responses::Login &res, mtx::http::RequestErr err) {