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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/csapi/filter.cpp b/lib/csapi/filter.cpp
index 38c68be7..2469fbd1 100644
--- a/lib/csapi/filter.cpp
+++ b/lib/csapi/filter.cpp
@@ -8,9 +8,9 @@ using namespace Quotient;
DefineFilterJob::DefineFilterJob(const QString& userId, const Filter& filter)
: BaseJob(HttpVerb::Post, QStringLiteral("DefineFilterJob"),
- makePath("/_matrix/client/r0", "/user/", userId, "/filter"))
+ makePath("/_matrix/client/v3", "/user/", userId, "/filter"))
{
- setRequestData(RequestData(toJson(filter)));
+ setRequestData({ toJson(filter) });
addExpectedKey("filter_id");
}
@@ -18,12 +18,12 @@ QUrl GetFilterJob::makeRequestUrl(QUrl baseUrl, const QString& userId,
const QString& filterId)
{
return BaseJob::makeRequestUrl(std::move(baseUrl),
- makePath("/_matrix/client/r0", "/user/",
+ makePath("/_matrix/client/v3", "/user/",
userId, "/filter/", filterId));
}
GetFilterJob::GetFilterJob(const QString& userId, const QString& filterId)
: BaseJob(HttpVerb::Get, QStringLiteral("GetFilterJob"),
- makePath("/_matrix/client/r0", "/user/", userId, "/filter/",
+ makePath("/_matrix/client/v3", "/user/", userId, "/filter/",
filterId))
{}