Skip to content
Snippets Groups Projects
Verified Commit 7431b51d authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Update mtxclient to use new login parameters

fixes #558
parent b160baba
No related branches found
No related tags found
No related merge requests found
Pipeline #1084 failed
......@@ -362,7 +362,7 @@ if(USE_BUNDLED_MTXCLIENT)
FetchContent_Declare(
MatrixClient
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
GIT_TAG v0.5.1
GIT_TAG 5d2f055ea9403770039ddf66b1900f890cd5cde7
)
set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "")
set(BUILD_LIB_TESTS OFF CACHE INTERNAL "")
......
......@@ -148,8 +148,7 @@ modules:
buildsystem: cmake-ninja
name: mtxclient
sources:
- commit: b19f1dc7e422f1bb217f02487567fc09e25e7d2b
tag: v0.5.1
- commit: 5d2f055ea9403770039ddf66b1900f890cd5cde7
type: git
url: https://github.com/Nheko-Reborn/mtxclient.git
- config-opts:
......
......@@ -420,8 +420,11 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod)
: deviceName_->text().toStdString(),
[this](const mtx::responses::Login &res, mtx::http::RequestErr err) {
if (err) {
showErrorMessage(error_label_,
QString::fromStdString(err->matrix_error.error));
auto error = err->matrix_error.error;
if (error.empty())
error = err->parse_error;
showErrorMessage(error_label_, QString::fromStdString(error));
emit errorOccurred();
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment