From 50e4188ebe51ff23c6f954f514cbb0574199cf7b Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 14 Mar 2021 20:52:49 +0100 Subject: [PATCH] Return unique matches --- app/src/main/java/eu/faircode/email/DaoMessage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index 4884f94718..1710292508 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -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 matchMessages(