Return unique matches

This commit is contained in:
M66B 2021-03-14 20:52:49 +01:00
parent e2c8828f57
commit 50e4188ebe
1 changed files with 1 additions and 0 deletions

View File

@ -332,6 +332,7 @@ public interface DaoMessage {
" AND (:size IS NULL OR total > :size)" +
" AND (:after IS NULL OR received > :after)" +
" AND (:before IS NULL OR received < :before)" +
" GROUP BY message.id" +
" ORDER BY received DESC" +
" LIMIT :limit OFFSET :offset")
List<TupleMatch> matchMessages(