Always return the oldest matching messages from MAM, even if no date is set

This commit is contained in:
louiz’ committed 2018-02-10 17:47:42 +01:00
1 parent e0d1a0b44a
commit 99389eefba
5 files changed
+40 -11

No files matched your search

+1 -1
View File
@@ -721,7 +721,7 @@ bool BiboumiComponent::handle_mam_request(const Stanza& stanza)
if (max)
limit = std::atoi(max->get_inner().data());
}
// Do send more than 100 messages, even if the client asked for more,
// Do not send more than 100 messages, even if the client asked for more,
// or if it didn’t specify any limit.
// 101 is just a trick to know if there are more available messages.
// If our query returns 101 message, we know it’s incomplete, but we