From 6a4af80a7199753b493b17684162673b024d2191 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 26 May 2018 20:18:32 +0900 Subject: lib/csapi/: regenerate job classes from the most recent templates The second part to close #208. --- lib/csapi/redaction.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/csapi/redaction.cpp') diff --git a/lib/csapi/redaction.cpp b/lib/csapi/redaction.cpp index 0da35dfc..aa6e3b65 100644 --- a/lib/csapi/redaction.cpp +++ b/lib/csapi/redaction.cpp @@ -24,8 +24,7 @@ RedactEventJob::RedactEventJob(const QString& roomId, const QString& eventId, co , d(new Private) { QJsonObject _data; - if (!reason.isEmpty()) - _data.insert("reason", toJson(reason)); + addToJson(_data, "reason", reason); setRequestData(_data); } -- cgit v1.2.3