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/typing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/csapi/typing.cpp') diff --git a/lib/csapi/typing.cpp b/lib/csapi/typing.cpp index fa700290..898bc149 100644 --- a/lib/csapi/typing.cpp +++ b/lib/csapi/typing.cpp @@ -17,8 +17,8 @@ SetTypingJob::SetTypingJob(const QString& userId, const QString& roomId, bool ty basePath % "/rooms/" % roomId % "/typing/" % userId) { QJsonObject _data; - _data.insert("typing", toJson(typing)); - _data.insert("timeout", toJson(timeout)); + addToJson<>(_data, "typing", typing); + addToJson(_data, "timeout", timeout); setRequestData(_data); } -- cgit v1.2.3