diff options
Diffstat (limited to 'jobs/generated/redaction.cpp')
-rw-r--r-- | jobs/generated/redaction.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/jobs/generated/redaction.cpp b/jobs/generated/redaction.cpp index 218e1aa6..0da35dfc 100644 --- a/jobs/generated/redaction.cpp +++ b/jobs/generated/redaction.cpp @@ -20,16 +20,13 @@ class RedactEventJob::Private RedactEventJob::RedactEventJob(const QString& roomId, const QString& eventId, const QString& txnId, const QString& reason) : BaseJob(HttpVerb::Put, "RedactEventJob", - basePath % "/rooms/" % roomId % "/redact/" % eventId % "/" % txnId, - Query { } - ), d(new Private) + basePath % "/rooms/" % roomId % "/redact/" % eventId % "/" % txnId) + , d(new Private) { QJsonObject _data; if (!reason.isEmpty()) _data.insert("reason", toJson(reason)); setRequestData(_data); - - addExpectedContentType("application/json"); } RedactEventJob::~RedactEventJob() = default; |