aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/to_device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/to_device.cpp')
-rw-r--r--lib/csapi/to_device.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/csapi/to_device.cpp b/lib/csapi/to_device.cpp
index e277503c..28c4115a 100644
--- a/lib/csapi/to_device.cpp
+++ b/lib/csapi/to_device.cpp
@@ -4,21 +4,18 @@
#include "to_device.h"
-#include "converters.h"
-
#include <QtCore/QStringBuilder>
using namespace Quotient;
-static const auto basePath = QStringLiteral("/_matrix/client/r0");
-
SendToDeviceJob::SendToDeviceJob(
const QString& eventType, const QString& txnId,
const QHash<QString, QHash<QString, QJsonObject>>& messages)
: BaseJob(HttpVerb::Put, QStringLiteral("SendToDeviceJob"),
- basePath % "/sendToDevice/" % eventType % "/" % txnId)
+ QStringLiteral("/_matrix/client/r0") % "/sendToDevice/"
+ % eventType % "/" % txnId)
{
QJsonObject _data;
addParam<IfNotEmpty>(_data, QStringLiteral("messages"), messages);
- setRequestData(_data);
+ setRequestData(std::move(_data));
}