aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/kicking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/kicking.cpp')
-rw-r--r--lib/csapi/kicking.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/csapi/kicking.cpp b/lib/csapi/kicking.cpp
index ce7fcdad..39125f42 100644
--- a/lib/csapi/kicking.cpp
+++ b/lib/csapi/kicking.cpp
@@ -12,11 +12,9 @@ using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-static const auto KickJobName = QStringLiteral("KickJob");
-
KickJob::KickJob(const QString& roomId, const QString& userId,
const QString& reason)
- : BaseJob(HttpVerb::Post, KickJobName,
+ : BaseJob(HttpVerb::Post, QStringLiteral("KickJob"),
basePath % "/rooms/" % roomId % "/kick")
{
QJsonObject _data;