aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/account-data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/account-data.cpp')
-rw-r--r--lib/csapi/account-data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csapi/account-data.cpp b/lib/csapi/account-data.cpp
index 1343eb98..8c71f6c5 100644
--- a/lib/csapi/account-data.cpp
+++ b/lib/csapi/account-data.cpp
@@ -12,7 +12,7 @@ SetAccountDataJob::SetAccountDataJob(const QString& userId, const QString& type,
makePath("/_matrix/client/v3", "/user/", userId, "/account_data/",
type))
{
- setRequestData(RequestData(toJson(content)));
+ setRequestData({ toJson(content) });
}
QUrl GetAccountDataJob::makeRequestUrl(QUrl baseUrl, const QString& userId,
@@ -37,7 +37,7 @@ SetAccountDataPerRoomJob::SetAccountDataPerRoomJob(const QString& userId,
makePath("/_matrix/client/v3", "/user/", userId, "/rooms/",
roomId, "/account_data/", type))
{
- setRequestData(RequestData(toJson(content)));
+ setRequestData({ toJson(content) });
}
QUrl GetAccountDataPerRoomJob::makeRequestUrl(QUrl baseUrl,