aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/third_party_membership.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-26 20:18:32 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-26 20:18:32 +0900
commit6a4af80a7199753b493b17684162673b024d2191 (patch)
tree54cda4e8d95ce33cfa090893b13aa83fef016c35 /lib/csapi/third_party_membership.cpp
parentc5d06cf378e820ca4290998a5580e87957daf061 (diff)
downloadlibquotient-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/third_party_membership.cpp')
-rw-r--r--lib/csapi/third_party_membership.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/third_party_membership.cpp b/lib/csapi/third_party_membership.cpp
index b637d481..4cdad48b 100644
--- a/lib/csapi/third_party_membership.cpp
+++ b/lib/csapi/third_party_membership.cpp
@@ -17,9 +17,9 @@ InviteBy3PIDJob::InviteBy3PIDJob(const QString& roomId, const QString& idServer,
basePath % "/rooms/" % roomId % "/invite")
{
QJsonObject _data;
- _data.insert("id_server", toJson(idServer));
- _data.insert("medium", toJson(medium));
- _data.insert("address", toJson(address));
+ addToJson<>(_data, "id_server", idServer);
+ addToJson<>(_data, "medium", medium);
+ addToJson<>(_data, "address", address);
setRequestData(_data);
}