summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-04-14 19:48:45 +0200
committerlouiz’ <louiz@louiz.org>2018-04-14 19:48:45 +0200
commit5ef7ba08028065b03d51d1dc70bb35aeb41ae19d (patch)
tree2f845ce6d11b1a901007a78ad9202b2e90e4771f /src/bridge/bridge.cpp
parentd375a9edeb7a2aa21497a2cbc1db0d3f703283a6 (diff)
downloadbiboumi-5ef7ba08028065b03d51d1dc70bb35aeb41ae19d.tar.gz
biboumi-5ef7ba08028065b03d51d1dc70bb35aeb41ae19d.tar.bz2
biboumi-5ef7ba08028065b03d51d1dc70bb35aeb41ae19d.tar.xz
biboumi-5ef7ba08028065b03d51d1dc70bb35aeb41ae19d.zip
Use the Date to find a next page in RSM, not the id
This way, it works, whatever the order of insertion in the database was. fix #3343
Diffstat (limited to 'src/bridge/bridge.cpp')
-rw-r--r--src/bridge/bridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 2598f51..afc8ad3 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -1005,7 +1005,7 @@ void Bridge::send_room_history(const std::string& hostname, std::string chan_nam
auto limit = coptions.col<Database::MaxHistoryLength>();
if (history_limit.stanzas >= 0 && history_limit.stanzas < limit)
limit = history_limit.stanzas;
- const auto lines = Database::get_muc_logs(this->user_jid, chan_name, hostname, limit, history_limit.since, {}, Id::unset_value, Database::Paging::last);
+ const auto lines = Database::get_muc_logs(this->user_jid, chan_name, hostname, limit, history_limit.since, {}, {}, Database::Paging::last);
chan_name.append(utils::empty_if_fixed_server("%" + hostname));
for (const auto& line: lines)
{