mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Add missing header
[ci skip]
This commit is contained in:
parent
791a9d0a4d
commit
3d26c5f14d
1 changed files with 2 additions and 1 deletions
|
@ -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()));
|
||||||
|
|
Loading…
Reference in a new issue