aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/filter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/filter.cpp')
-rw-r--r--lib/csapi/filter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/filter.cpp b/lib/csapi/filter.cpp
index 57cb1271..2469fbd1 100644
--- a/lib/csapi/filter.cpp
+++ b/lib/csapi/filter.cpp
@@ -10,7 +10,7 @@ DefineFilterJob::DefineFilterJob(const QString& userId, const Filter& filter)
: BaseJob(HttpVerb::Post, QStringLiteral("DefineFilterJob"),
makePath("/_matrix/client/v3", "/user/", userId, "/filter"))
{
- setRequestData(RequestData(toJson(filter)));
+ setRequestData({ toJson(filter) });
addExpectedKey("filter_id");
}