aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/leaving.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/leaving.cpp')
-rw-r--r--lib/csapi/leaving.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/csapi/leaving.cpp b/lib/csapi/leaving.cpp
index 2fa1da56..8bd170bf 100644
--- a/lib/csapi/leaving.cpp
+++ b/lib/csapi/leaving.cpp
@@ -4,32 +4,32 @@
#include "leaving.h"
-#include "converters.h"
-
#include <QtCore/QStringBuilder>
using namespace Quotient;
-static const auto basePath = QStringLiteral("/_matrix/client/r0");
-
QUrl LeaveRoomJob::makeRequestUrl(QUrl baseUrl, const QString& roomId)
{
return BaseJob::makeRequestUrl(std::move(baseUrl),
- basePath % "/rooms/" % roomId % "/leave");
+ QStringLiteral("/_matrix/client/r0")
+ % "/rooms/" % roomId % "/leave");
}
LeaveRoomJob::LeaveRoomJob(const QString& roomId)
: BaseJob(HttpVerb::Post, QStringLiteral("LeaveRoomJob"),
- basePath % "/rooms/" % roomId % "/leave")
+ QStringLiteral("/_matrix/client/r0") % "/rooms/" % roomId
+ % "/leave")
{}
QUrl ForgetRoomJob::makeRequestUrl(QUrl baseUrl, const QString& roomId)
{
return BaseJob::makeRequestUrl(std::move(baseUrl),
- basePath % "/rooms/" % roomId % "/forget");
+ QStringLiteral("/_matrix/client/r0")
+ % "/rooms/" % roomId % "/forget");
}
ForgetRoomJob::ForgetRoomJob(const QString& roomId)
: BaseJob(HttpVerb::Post, QStringLiteral("ForgetRoomJob"),
- basePath % "/rooms/" % roomId % "/forget")
+ QStringLiteral("/_matrix/client/r0") % "/rooms/" % roomId
+ % "/forget")
{}