aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/typing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/typing.cpp')
-rw-r--r--lib/csapi/typing.cpp4
1 files changed, 2 insertions, 2 deletions
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<IfNotEmpty>(_data, "timeout", timeout);
setRequestData(_data);
}