aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-30 12:59:52 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-30 12:59:52 +0900
commit4e3703a45fcff6433441482892cfb14fd9bd8a7c (patch)
treec7efb045bc092b95d374db257a1e757310a82dee
parent547170c8eb03f3b8477f131724e028ef38ed16fa (diff)
downloadlibquotient-4e3703a45fcff6433441482892cfb14fd9bd8a7c.tar.gz
libquotient-4e3703a45fcff6433441482892cfb14fd9bd8a7c.zip
toJson(TagRecord): don't dump order if there's none
-rw-r--r--lib/events/accountdataevents.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h
index 792ea7f7..d1c1abc8 100644
--- a/lib/events/accountdataevents.h
+++ b/lib/events/accountdataevents.h
@@ -63,7 +63,7 @@ namespace QMatrixClient
inline QJsonValue toJson(const TagRecord& rec)
{
QJsonObject o;
- addParam(o, QStringLiteral("order"), rec.order);
+ addParam<IfNotEmpty>(o, QStringLiteral("order"), rec.order);
return o;
}