Auto trash/delete hidden messages

pull/213/head
M66B 1 year ago
parent c89ba434b3
commit 77e01a24de

@ -1008,7 +1008,7 @@ public interface DaoMessage {
" AND (ui_seen OR :unseen)" +
" AND NOT ui_flagged" +
" AND stored < :sync_time" + // moved, browsed
" AND ui_snoozed IS NULL")
" AND (ui_snoozed IS NULL OR ui_snoozed =" + Long.MAX_VALUE+")")
List<Long> getMessagesBefore(long folder, long sync_time, long keep_time, boolean unseen);
@Query("DELETE FROM message" +
@ -1018,7 +1018,7 @@ public interface DaoMessage {
" AND (ui_seen OR :unseen)" +
" AND NOT ui_flagged" +
" AND stored < :sync_time" + // moved, browsed
" AND ui_snoozed IS NULL")
" AND (ui_snoozed IS NULL OR ui_snoozed = " + Long.MAX_VALUE + ")")
int deleteMessagesBefore(long folder, long sync_time, long keep_time, boolean unseen);
@Transaction

Loading…
Cancel
Save