This commit is contained in:
Konstantinos Sideris 2018-01-22 14:52:54 +02:00
parent 64dd4c5985
commit 4098cf6780

View file

@ -28,8 +28,6 @@
#include <QSettings> #include <QSettings>
#include <QUrlQuery> #include <QUrlQuery>
#include <zlib.h>
#include "Login.h" #include "Login.h"
#include "MatrixClient.h" #include "MatrixClient.h"
#include "Register.h" #include "Register.h"
@ -698,7 +696,7 @@ MatrixClient::fetchUserAvatar(const QUrl &avatarUrl,
QNetworkRequest avatar_request(endpoint); QNetworkRequest avatar_request(endpoint);
auto reply = get(avatar_request); auto reply = get(avatar_request);
connect(reply, &QNetworkReply::finished, this, [this, reply, onSuccess, onError]() { connect(reply, &QNetworkReply::finished, this, [reply, onSuccess, onError]() {
reply->deleteLater(); reply->deleteLater();
int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();