aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/knocking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/knocking.cpp')
-rw-r--r--lib/csapi/knocking.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/csapi/knocking.cpp b/lib/csapi/knocking.cpp
index 788bb378..73e13e6e 100644
--- a/lib/csapi/knocking.cpp
+++ b/lib/csapi/knocking.cpp
@@ -4,8 +4,6 @@
#include "knocking.h"
-#include <QtCore/QStringBuilder>
-
using namespace Quotient;
auto queryToKnockRoom(const QStringList& serverName)
@@ -18,7 +16,7 @@ auto queryToKnockRoom(const QStringList& serverName)
KnockRoomJob::KnockRoomJob(const QString& roomIdOrAlias,
const QStringList& serverName, const QString& reason)
: BaseJob(HttpVerb::Post, QStringLiteral("KnockRoomJob"),
- QStringLiteral("/_matrix/client/r0") % "/knock/" % roomIdOrAlias,
+ makePath("/_matrix/client/r0", "/knock/", roomIdOrAlias),
queryToKnockRoom(serverName))
{
QJsonObject _data;