diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-26 20:18:32 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-26 20:18:32 +0900 |
commit | 6a4af80a7199753b493b17684162673b024d2191 (patch) | |
tree | 54cda4e8d95ce33cfa090893b13aa83fef016c35 /lib/csapi/redaction.cpp | |
parent | c5d06cf378e820ca4290998a5580e87957daf061 (diff) | |
download | libquotient-6a4af80a7199753b493b17684162673b024d2191.tar.gz libquotient-6a4af80a7199753b493b17684162673b024d2191.zip |
lib/csapi/: regenerate job classes from the most recent templates
The second part to close #208.
Diffstat (limited to 'lib/csapi/redaction.cpp')
-rw-r--r-- | lib/csapi/redaction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<IfNotEmpty>(_data, "reason", reason); setRequestData(_data); } |