summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-02-13 03:10:00 +0100
committerlouiz’ <louiz@louiz.org>2018-02-13 03:10:00 +0100
commitfd7c365288b9c4db1d441b553d42b26e81715b36 (patch)
treeebd99e3af5ccffd605a65c5446c6d7deec9dd872 /src/bridge/bridge.cpp
parentfd9c7139386e773ee64fe970089d77fede75181f (diff)
downloadbiboumi-fd7c365288b9c4db1d441b553d42b26e81715b36.tar.gz
biboumi-fd7c365288b9c4db1d441b553d42b26e81715b36.tar.bz2
biboumi-fd7c365288b9c4db1d441b553d42b26e81715b36.tar.xz
biboumi-fd7c365288b9c4db1d441b553d42b26e81715b36.zip
Use the same function for both history orders
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 acb8e18..fefab40 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -1020,7 +1020,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_most_recent_logs(this->user_jid, chan_name, hostname, limit, history_limit.since);
+ const auto lines = Database::get_muc_logs(this->user_jid, chan_name, hostname, limit, history_limit.since, {}, Id::unset_value, Database::Paging::last);
chan_name.append(utils::empty_if_fixed_server("%" + hostname));
for (const auto& line: lines)
{