mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
parent
b160baba4e
commit
7431b51d27
3 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue