mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Limit thread search range
This commit is contained in:
@@ -424,8 +424,9 @@ public interface DaoMessage {
|
||||
|
||||
@Query("SELECT thread, msgid, hash, inreplyto FROM message" +
|
||||
" WHERE account = :account" +
|
||||
" AND (msgid IN (:msgids) OR inreplyto IN (:msgids))")
|
||||
List<TupleThreadInfo> getThreadInfo(long account, List<String> msgids);
|
||||
" AND (msgid IN (:msgids) OR inreplyto IN (:msgids))" +
|
||||
" AND (:range IS NULL || received > :range)")
|
||||
List<TupleThreadInfo> getThreadInfo(long account, List<String> msgids, Long range);
|
||||
|
||||
@Query("SELECT * FROM message" +
|
||||
" WHERE account = :account" +
|
||||
|
||||
Reference in New Issue
Block a user