From e98145daeca90b42fc21fc2c3bbf5ce4bd13ff2d Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 13 Mar 2022 17:59:22 +0100 Subject: [PATCH] Fix key upload when doing SSO login --- src/LoginPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp index 6a83376c..b34e9806 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp @@ -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) {