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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/to_device.cpp b/lib/csapi/to_device.cpp
index 48e943db..e10fac69 100644
--- a/lib/csapi/to_device.cpp
+++ b/lib/csapi/to_device.cpp
@@ -13,7 +13,7 @@ SendToDeviceJob::SendToDeviceJob(
makePath("/_matrix/client/v3", "/sendToDevice/", eventType, "/",
txnId))
{
- QJsonObject _data;
- addParam<>(_data, QStringLiteral("messages"), messages);
- setRequestData(std::move(_data));
+ QJsonObject _dataJson;
+ addParam<>(_dataJson, QStringLiteral("messages"), messages);
+ setRequestData({ _dataJson });
}