mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Optimized thread ID
This commit is contained in:
@@ -425,6 +425,11 @@ public interface DaoMessage {
|
||||
" AND inreplyto = :inreplyto")
|
||||
List<EntityMessage> getMessagesByInReplyTo(long account, String inreplyto);
|
||||
|
||||
@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);
|
||||
|
||||
@Query("SELECT * FROM message" +
|
||||
" WHERE account = :account" +
|
||||
" AND sender = :sender" +
|
||||
|
||||
Reference in New Issue
Block a user