Commit 1236b8a0 authored by louiz’'s avatar louiz’

Only use the ID to order archives

fix #3343
parent 61de6b1d
Pipeline #1246 passed with stages
in 13 minutes and 33 seconds
......@@ -2,6 +2,11 @@ Version 8.0
===========
- Add a complete='true' in MAM’s iq result when appropriate
- The archive ordering now only relies on the value of the ID, not the
date. This means that if you manually import archives in your database (or
mess with it somehow), biboumi will not work properly anymore, if you
don’t make sure the ID of everything in the muclogline table is
consistent.
- The “virtual” channel with an empty name (for example
%irc.freenode.net@biboumi) has been entirely removed.
- Add an “Address” field in the servers’ configure form. This lets
......
......@@ -224,9 +224,9 @@ std::vector<Database::MucLogLine> Database::get_muc_logs(const std::string& owne
}
if (paging == Database::Paging::first)
request.order_by() << Database::Date{} << " ASC, " << Id{} << " ASC ";
request.order_by() << Id{} << " ASC ";
else
request.order_by() << Database::Date{} << " DESC, " << Id{} << " DESC ";
request.order_by() << Id{} << " DESC ";
if (limit >= 0)
request.limit() << limit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment