aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/list_joined_rooms.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-04 18:40:48 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-04 18:40:48 +0200
commit1fd25fe944b67c55435ed4d4d8fd1cbb0989bb5f (patch)
tree88bde5f7a3f0ec2620694f925d0ec5ae2af97f2f /lib/csapi/list_joined_rooms.cpp
parent96f31d7d8ed1c9ab905c24ac039079aea622f4dc (diff)
downloadlibquotient-1fd25fe944b67c55435ed4d4d8fd1cbb0989bb5f.tar.gz
libquotient-1fd25fe944b67c55435ed4d4d8fd1cbb0989bb5f.zip
Regenerate CS API files upon the previous commit
Diffstat (limited to 'lib/csapi/list_joined_rooms.cpp')
-rw-r--r--lib/csapi/list_joined_rooms.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/csapi/list_joined_rooms.cpp b/lib/csapi/list_joined_rooms.cpp
index 8d7e267f..22ba04da 100644
--- a/lib/csapi/list_joined_rooms.cpp
+++ b/lib/csapi/list_joined_rooms.cpp
@@ -4,20 +4,17 @@
#include "list_joined_rooms.h"
-#include <QtCore/QStringBuilder>
-
using namespace Quotient;
QUrl GetJoinedRoomsJob::makeRequestUrl(QUrl baseUrl)
{
- return BaseJob::makeRequestUrl(std::move(baseUrl),
- QStringLiteral("/_matrix/client/r0")
- % "/joined_rooms");
+ return BaseJob::makeRequestUrl(
+ std::move(baseUrl), makePath("/_matrix/client/r0", "/joined_rooms"));
}
GetJoinedRoomsJob::GetJoinedRoomsJob()
: BaseJob(HttpVerb::Get, QStringLiteral("GetJoinedRoomsJob"),
- QStringLiteral("/_matrix/client/r0") % "/joined_rooms")
+ makePath("/_matrix/client/r0", "/joined_rooms"))
{
addExpectedKey("joined_rooms");
}