Added quick sync options

This commit is contained in:
M66B
2021-08-06 13:36:52 +02:00
parent 6457c76bcf
commit 32be7ba708
5 changed files with 447 additions and 339 deletions

View File

@@ -566,6 +566,13 @@ public interface DaoMessage {
" AND NOT uid IS NULL")
List<Long> getUids(long folder, Long received);
@Query("SELECT * FROM message" +
" WHERE folder = :folder" +
" AND (:received IS NULL OR received >= :received)" +
" AND NOT uid IS NULL" +
" AND NOT content")
List<EntityMessage> getMessagesWithoutContent(long folder, Long received);
@Query("SELECT uid FROM message" +
" WHERE folder = :folder" +
" AND NOT ui_busy IS NULL" +