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.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/csapi/to_device.cpp b/lib/csapi/to_device.cpp
index 7c7f495a..3fb17109 100644
--- a/lib/csapi/to_device.cpp
+++ b/lib/csapi/to_device.cpp
@@ -14,12 +14,13 @@ static const auto basePath = QStringLiteral("/_matrix/client/r0");
static const auto SendToDeviceJobName = QStringLiteral("SendToDeviceJob");
-SendToDeviceJob::SendToDeviceJob(const QString& eventType, const QString& txnId, const QHash<QString, QHash<QString, QJsonObject>>& messages)
+SendToDeviceJob::SendToDeviceJob(
+ const QString& eventType, const QString& txnId,
+ const QHash<QString, QHash<QString, QJsonObject>>& messages)
: BaseJob(HttpVerb::Put, SendToDeviceJobName,
- basePath % "/sendToDevice/" % eventType % "/" % txnId)
+ basePath % "/sendToDevice/" % eventType % "/" % txnId)
{
QJsonObject _data;
addParam<IfNotEmpty>(_data, QStringLiteral("messages"), messages);
setRequestData(_data);
}
-