summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-02-10 17:36:33 +0100
committerlouiz’ <louiz@louiz.org>2018-02-10 17:47:42 +0100
commit99389eefba1883753c15c6f411fb8543c93f58a1 (patch)
tree5378f59a336f24f0e37eebf570eb965074aebe57 /src/bridge
parente0d1a0b44add408504e428d6ce4a8a2121ea7a00 (diff)
downloadbiboumi-99389eefba1883753c15c6f411fb8543c93f58a1.tar.gz
biboumi-99389eefba1883753c15c6f411fb8543c93f58a1.tar.bz2
biboumi-99389eefba1883753c15c6f411fb8543c93f58a1.tar.xz
biboumi-99389eefba1883753c15c6f411fb8543c93f58a1.zip
Always return the oldest matching messages from MAM, even if no date is set
Diffstat (limited to 'src/bridge')
-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 54bee84..acb8e18 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_logs(this->user_jid, chan_name, hostname, limit, history_limit.since);
+ const auto lines = Database::get_muc_most_recent_logs(this->user_jid, chan_name, hostname, limit, history_limit.since);
chan_name.append(utils::empty_if_fixed_server("%" + hostname));
for (const auto& line: lines)
{