Skip purge of messages with pending operations

pull/214/head
M66B 1 year ago
parent 65ca2958c9
commit a8517e1537

@ -652,9 +652,9 @@ public interface DaoMessage {
@Query("SELECT uid FROM message" + @Query("SELECT uid FROM message" +
" WHERE folder = :folder" + " WHERE folder = :folder" +
" AND NOT ui_busy IS NULL" + " AND NOT uid IS NULL" +
" AND ui_busy > :time" + " AND ((NOT ui_busy IS NULL AND ui_busy > :time)" +
" AND NOT uid IS NULL") " OR (EXISTS (SELECT * FROM operation WHERE operation.id = message.id)))")
List<Long> getBusyUids(long folder, long time); List<Long> getBusyUids(long folder, long time);
@Query("SELECT id, uidl, msgid, ui_hide, ui_busy, ui_flagged FROM message" + @Query("SELECT id, uidl, msgid, ui_hide, ui_busy, ui_flagged FROM message" +

Loading…
Cancel
Save