Add missing header

[ci skip]
This commit is contained in:
Konstantinos Sideris 2018-05-17 00:15:12 +03:00
parent 791a9d0a4d
commit 3d26c5f14d

View file

@ -23,6 +23,7 @@
#include <QNetworkReply> #include <QNetworkReply>
#include <QNetworkRequest> #include <QNetworkRequest>
#include <QUrl> #include <QUrl>
#include <memory>
#include <mtx.hpp> #include <mtx.hpp>
#include <mtx/errors.hpp> #include <mtx/errors.hpp>
@ -253,7 +254,7 @@ MatrixClient::sendStateEvent(const EventBody &body, const QString &roomId, const
setupAuth(request); setupAuth(request);
auto proxy = std::shared_ptr<StateEventProxy>(new StateEventProxy, auto proxy = std::shared_ptr<StateEventProxy>(new StateEventProxy,
[](auto proxy) { proxy->deleteLater(); }); [](StateEventProxy *p) { p->deleteLater(); });
auto serializedBody = nlohmann::json(body).dump(); auto serializedBody = nlohmann::json(body).dump();
auto reply = put(request, QByteArray(serializedBody.data(), serializedBody.size())); auto reply = put(request, QByteArray(serializedBody.data(), serializedBody.size()));