diff options
Diffstat (limited to 'lib/csapi/message_pagination.cpp')
-rw-r--r-- | lib/csapi/message_pagination.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/csapi/message_pagination.cpp b/lib/csapi/message_pagination.cpp index 1ea852de..d23dd911 100644 --- a/lib/csapi/message_pagination.cpp +++ b/lib/csapi/message_pagination.cpp @@ -27,7 +27,8 @@ BaseJob::Query queryToGetRoomEvents(const QString& from, const QString& to, cons if (!to.isEmpty()) _q.addQueryItem("to", to); _q.addQueryItem("dir", dir); - _q.addQueryItem("limit", QString("%1").arg(limit)); + if (limit) + _q.addQueryItem("limit", QString("%1").arg(limit.value())); if (!filter.isEmpty()) _q.addQueryItem("filter", filter); return _q; |