aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/redaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/redaction.cpp')
-rw-r--r--lib/csapi/redaction.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/csapi/redaction.cpp b/lib/csapi/redaction.cpp
index d2dbe19b..2b6417ea 100644
--- a/lib/csapi/redaction.cpp
+++ b/lib/csapi/redaction.cpp
@@ -12,17 +12,14 @@ using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-class RedactEventJob::Private
-{
+class RedactEventJob::Private {
public:
QString eventId;
};
-static const auto RedactEventJobName = QStringLiteral("RedactEventJob");
-
RedactEventJob::RedactEventJob(const QString& roomId, const QString& eventId,
const QString& txnId, const QString& reason)
- : BaseJob(HttpVerb::Put, RedactEventJobName,
+ : BaseJob(HttpVerb::Put, QStringLiteral("RedactEventJob"),
basePath % "/rooms/" % roomId % "/redact/" % eventId % "/" % txnId)
, d(new Private)
{