aboutsummaryrefslogtreecommitdiff
path: root/examples/example_7_archiveHandling/example_7_archiveHandling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example_7_archiveHandling/example_7_archiveHandling.cpp')
-rw-r--r--examples/example_7_archiveHandling/example_7_archiveHandling.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/example_7_archiveHandling/example_7_archiveHandling.cpp b/examples/example_7_archiveHandling/example_7_archiveHandling.cpp
index cfc445f0..25bf8fce 100644
--- a/examples/example_7_archiveHandling/example_7_archiveHandling.cpp
+++ b/examples/example_7_archiveHandling/example_7_archiveHandling.cpp
@@ -78,8 +78,9 @@ void xmppClient::archiveListReceived(const QList<QXmppArchiveChat> &chats, const
logStart("fetching collection first page");
QXmppResultSetQuery rsmQuery;
rsmQuery.setMax(m_pageSize);
- if (m_pageDirection == PageBackwards)
+ if (m_pageDirection == PageBackwards) {
rsmQuery.setBefore("");
+ }
archiveManager->listCollections("", m_startDate, m_endDate, rsmQuery);
} else if (!chats.size()) {
logEnd("no items");